LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Schedule TOP command in Crontab. (https://www.linuxquestions.org/questions/red-hat-31/schedule-top-command-in-crontab-183579/)

imsajjadali 05-20-2004 01:45 AM

Schedule TOP command in Crontab.
 
I have scheduled the Top command in Crontab but due to continue process command it does not display any value.

Can anybody tell me how I can schedulr this command in Crontab
OR
How I can stop Top command in Crontab or script.

I have scheduled this command in Crontab as

30,00 * * * * top >> /home/top.txt

I want to display the results after every 30 minutes.

jinyang 05-20-2004 04:08 AM

the crontab entry should be:

30 * * * * /usr/bin/top c n 1 b >> /home/top.txt

Make sure you have write permission on the directory /home.

jinyang 05-20-2004 04:12 AM

a cron job can be removed by "crontab -e", edit and remove the entry.

if only a job on crontab, it can be simply done by running "crontab -r".


All times are GMT -5. The time now is 01:23 PM.