GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  Shell Scripting
Go To First  |  Previous Question  |  Next Question 
 Shell Scripting  |  Question 10 of 47    Print  
How do you schedule a command to run at 4:00 every morning?

  
Total Answers and Comments: 7 Last Update: April 07, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 03, 2005 05:01:00   #1  
mallem        

RE: How do you schedule a command to run at 4:00 every morning?
by using cron job
 
Is this answer useful? Yes | No
June 13, 2005 00:11:21   #2  
sb        

RE: How do you schedule a command to run at 4:00 every morning?
Schedule the Job using crontab..From the command prompt perform a man on crontab and then type in crontab -e to create a new job
 
Is this answer useful? Yes | No
July 05, 2005 05:45:14   #3  
Rakesh Gautam        

RE: How do you schedule a command to run at 4:00 every morning?
do first

crontab -e and then add a line like below

0 4 * * * name of the command


 
Is this answer useful? Yes | No
October 03, 2005 02:37:49   #4  
ravikdesh Member Since: October 2005   Contribution: 3    

RE: How do you schedule a command to run at 4:00 ever...

Step 1. Set environemen variable EDITOR vi if not set

Step 2. Give command crontab -e

Step 3. Add following entry at the end

0 4 * * * <Your command to run at 4:00 am morning>


 
Is this answer useful? Yes | No
October 30, 2005 03:54:32   #5  
mchauhan Member Since: October 2005   Contribution: 19    

RE: How do you schedule a command to run at 4:00 ever...
This is done by 'at' command in HPUX and Sun solaris or 'cron' command can be used too. Mukesh Chauhan -Bangalore
 
Is this answer useful? Yes | No
March 25, 2007 20:12:21   #6  
cmanne Member Since: January 2006   Contribution: 49    

RE: How do you schedule a command to run at 4:00 every...
1. There are two ways to schedule a script to run exactly at 4:00 AM every morning

a: CRONTAB
b. AT (at command executes only once)

Crontab format
* * * * * <command>
<minute> <hour> <date> <month> <day_of_the_week> command
<0-59> <0-23> <1-31> <1-12> <0-7> command

 
Is this answer useful? Yes | No
April 07, 2007 04:31:40   #7  
Jyotiranjan Mohanty        

RE: How do you schedule a command to run at 4:00 every...
1st step
$ cat > cmdfile
//<Minute> <Hour> <Day Of Month> <Day Of Week> <Command>
0 4 * * <Command>
Ctrl d

2nd Step

crontab cmdfile

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape