Cron the top command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cron the top command
# 1  
Old 02-26-2013
Cron the top command

Hi Greetings!!!!!
I want to cron the top command 1 hour once and need to save the file in /home/dm.
i am using redhat linux.
# 2  
Old 02-27-2013
Try something like this

Code:
0 * * * *  top -b -n 1 > /home/dm/filename

. You can also try the absolute path of top command.

Code:
type top
top is hashed (/usr/bin/top)


Last edited by Vikram_Tanwar12; 02-27-2013 at 02:13 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Top command

Hi All, i am using the below command and once get the output and i need to keep the first batch only.in this case how to do this one. please help me on thistop -b -n 5 >top.txt Thanks, (3 Replies)
Discussion started by: bmk
3 Replies

2. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

3. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

4. Shell Programming and Scripting

Top command

Hi , can some one please assist me in using top command im facing following after using top: # top -hv UX:sh (top): ERROR: top: syntax error at line 1: `(' unexpected # top -p UX:sh (top): ERROR: top: syntax error at line 1: `(' unexpected thanks in advance (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies

5. UNIX for Dummies Questions & Answers

running command "top" in cron

hi all, i would like to collect stat. about the cpu usage every 30 mins so, I set up the cron job sth like 0,30 * * * * * /usr/bin/top -d 1 >> $STAT i know cron doesn't have a TERM output, so error occurs. any ideas or work around for this?? many thanks (3 Replies)
Discussion started by: freddy1228
3 Replies

6. UNIX for Dummies Questions & Answers

The value in TOP command

https://www.unix.com/showpost.php?p=98416&postcount=8 Referring to the post above... what is the unit that is measured in the TOP command under LOAD? (1 Reply)
Discussion started by: nickk
1 Replies

7. SCO

HP-UX top command

Is there a command in SCO Unix that does the same as the top command in HPUX. The command displays the jobs using the most system resources. Thanks You (0 Replies)
Discussion started by: joestrosser
0 Replies

8. Solaris

top command

Hi I want to know how can I enable the command top in Solaris plataform. Thanks (1 Reply)
Discussion started by: llopez_hernande
1 Replies

9. UNIX for Dummies Questions & Answers

command --> top

What is the numbers show in a variable "Load Average"? (3 Replies)
Discussion started by: madness
3 Replies

10. UNIX for Dummies Questions & Answers

command --> top

I understand the numbers displayed in variable "load average". My question: what are the correct/ideal numbers? Sometimes, I got less than 1. Others, above 6. Also, what HW/SW should I tune in order to have the ideal numbers? Thank you ... (1 Reply)
Discussion started by: dgromerog
1 Replies
Login or Register to Ask a Question