Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / swaroopa

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>
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 Correct ?    23 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a shell environment?

998


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

1069


Why is shell scripting important?

1045


What is meant by dos operating system?

1058


What is scripting used for?

1046


What's the difference between scripting and coding?

1186


How do I run a script on mac?

1105


Explain about gui scripting?

1097


How do I run a script from command prompt?

1084


What is the fastest scripting language?

1009


What is subshell?

957


How do I run a powershell script?

1143


What is @echo off?

1021


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

4075


How do I debug a shell script?

1074