Skip to content

Commit 7ab1ce2

Browse files
authored
Update IV Functions and Automation.py
1 parent 033e868 commit 7ab1ce2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Introduction to Bash Scripting/IV Functions and Automation.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,23 @@
188188

189189
# Create a schedule for 11.30pm on Sunday evening, every week
190190
30 23 * * 0 bash script3.sh
191+
192+
"""
193+
### Scheduling cronjobs with crontab
194+
195+
Instructions 1/3
196+
197+
1
198+
Verify there are no existing cronjobs by listing them.
199+
2
200+
Use the edit command for crontab (select nano) then schedule extract_data.sh to run with Bash at 2:30am every day.
201+
3
202+
Verify the cronjob has been scheduled in the crontab by listing all current scheduled cronjobs.
203+
"""
204+
repl:~$ crontab -l
205+
# This is your crontab file.
206+
# Schedule your crontabs below.
207+
repl:~$ nano crontab
208+
30 2 * * * extract_data.sh
209+
# (save,exit) contrl O + contrl X
210+
repl:~$ crontab -l

0 commit comments

Comments
 (0)