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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / premitha

Using cron jobs

Is This Answer Correct ?    3 Yes 0 No

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

Answer / king

Using cron tab scheduler

Is This Answer Correct ?    1 Yes 0 No

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

Answer / satchi

crontab -e

* 4 * * * <command>

Is This Answer Correct ?    2 Yes 3 No

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

Answer / guest

* 4 * * * * <command to run>

= this is in cron job

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Shell Script Interview Questions

How do you create a shortcut in linux?

0 Answers  


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

0 Answers  


is this growing field and what is average package in this?

0 Answers  


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

0 Answers  


How to get the last line from a file using just the terminal?

0 Answers  






What are zombie processes?

0 Answers  


In a single command how do you run the previous command in the command prompt.

5 Answers  


How do scripts work?

0 Answers  


What is bash eval?

0 Answers  


What is the use of "shift" command in passing parameters?

1 Answers  


Where cron file kept?

2 Answers   Tech Mahindra,


Is cmd a shell?

0 Answers  


Categories