Answer the question
In order to leave comments, you need to log in
Cron Centos 7 why can't run the script?
Please tell me:
- created a script: stop.sh
# ! /bin/sh
systemctl stop mysql
systemctl stop httpd
Answer the question
In order to leave comments, you need to log in
Adjust line breaks to match the system on which you are using this file.
And don't create files on Windows.
Try like this, service mysql stop
service httpd stop
30 10 * * * /bin/sh /home/stop.sh
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question