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

Showing Answers 1 - 12 of 12 Answers

mallem

  • Jun 3rd, 2005
 

by using cron job

  Was this answer useful?  Yes

sb

  • Jun 13th, 2005
 

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"

  Was this answer useful?  Yes

Rakesh Gautam

  • Jul 5th, 2005
 

do first  
 
crontab -e and then add a line like below 
 
0 4 * * * name of the command 
 

  Was this answer useful?  Yes

ravikdesh

  • Oct 3rd, 2005
 

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>

  Was this answer useful?  Yes

mchauhan

  • Oct 30th, 2005
 

This is done by 'at' command  in HPUX and Sun solaris or 'cron' command can be used too. Mukesh Chauhan -Bangalore

  Was this answer useful?  Yes

cmanne

  • Mar 25th, 2007
 

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 

  Was this answer useful?  Yes

Jyotiranjan Mohanty

  • Apr 7th, 2007
 

1st step
$ cat > cmdfile
//<Minute> <Hour> <Day Of Month> <Day Of Week> <Command>
    0              4            *                         *                     <Command>
Ctrl d

2nd Step

crontab cmdfile

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions