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 sudo command?

552


What is the use of echo in shell script?

543


Explain about the slow execution speed of shells?

776


What is shell and shell script?

556


What does $@ mean in shell?

590






What is shell and terminal?

575


Explain about sourcing commands?

635


What is bash used for?

577


What is scripting used for?

560


How can I set the default rwx permission to all users on every file which is created in the current shell?

902


how to get part of string variable with echo command only?

591


How can I send a mail with a compressed file as an attachment?

556


How to redirect both standard output and standard error to the same location?

631


What is the default ubuntu terminal?

620


What is the use of .sh file?

601