LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-20-2004, 02:45 AM   #1
imsajjadali
Member
 
Registered: Jan 2004
Location: Faisalabad-Pakistan
Distribution: Red Hat Linux 2.1 Advance Server
Posts: 102

Rep: Reputation: 15
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.
 
Old 05-20-2004, 05:08 AM   #2
jinyang
LQ Newbie
 
Registered: Aug 2003
Location: China
Distribution: redhat9
Posts: 11

Rep: Reputation: 0
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.
 
Old 05-20-2004, 05:12 AM   #3
jinyang
LQ Newbie
 
Registered: Aug 2003
Location: China
Distribution: redhat9
Posts: 11

Rep: Reputation: 0
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".
 
0 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
top command Volcano Programming 18 10-15-2008 11:02 PM
command top getting error bluenectar Linux - General 2 08-19-2005 10:37 PM
crontab and command subst hyllplan Debian 2 01-15-2005 01:58 PM
schedule a crontab rupesh_pulikool Solaris / OpenSolaris 7 09-04-2004 10:32 PM
crontab schedule help onlykims Linux - Newbie 2 08-28-2004 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration