Answers for "stop crontab using shell script"

0

crontab execute shell script

# Script musts start with:
#!/bin/sh
# Allow execute grant on it
chmod +x /bin/sh/myscript.sh
# Edit crontab:
crontab -e							# open user crontab in edit mode
i      								# for insert.  Make your changes
0 2 * * * /bin/sh myscript.sh     	# plan it daily at 2am for example
:wq!   								# quit and save
Posted by: Guest on July-04-2021
0

how to stop cron job

#Red Hat / CentOs:

service crond stop

#or

/etc/init.d/crond stop

#Ubuntu:

sudo service cron stop

#or

sudo /etc/init.d/cron stop
Posted by: Guest on April-15-2022

Code answers related to "stop crontab using shell script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language