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. |
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. |
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. |