cron job with WordPress

execute shell script daily through cron

Normally running the shell script we will use the following command. If shell script not running then you need to do shell script executable. using following command

execute shell script daily through cron

#./shell_script.sh
If shell script not running then you need to do shell script executable. using following command

#chmod +x shell_script.sh

for running the shell scirpt daily through use the following command

#su
#PASSWORD
#crontab -e

Put following lines in cron file.
* * 1 * * /bin/sh /home/myuser/shellscript/shell_script.sh

 

execute shell script daily through cron
execute shell script daily through cron

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.