How do you schedule a command to run at 4:00 every
morning?
Answers were Sorted based on User's Feedback
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 |
Answer / guest
* 4 * * * * <command to run>
= this is in cron job
| Is This Answer Correct ? | 0 Yes | 2 No |
How to take input values from the user?
What are the three main forms of enabling debugging in a shell script?
How to open a read-only file in the shell?
Where are cowrie shells found?
What language is bash?
how to search for vowels a,e,i,o,u appearing in the same sequence in a file
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
How to modify the PATH variable and make it executable?
What is in a script?
What is the use of .sh file?
When we login into our account which files are executed?
How will you copy a file from one machine to other?