Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

start cronjob

#Red Hat / CentOs:

service crond restart

#or

/etc/init.d/crond restart

#Ubuntu:

sudo service cron restart

#or

sudo /etc/init.d/cron restart
Comment

how to start cron job

#Red Hat / CentOs:

service crond start

#or

/etc/init.d/crond start

#Ubuntu:

sudo service cron start

#or

sudo /etc/init.d/cron start
Comment

create cron job from command line

#write out current crontab
crontab -l > mycron
#echo new cron into cron file
echo "00 09 * * 1-5 echo hello" >> mycron
#install new cron file
crontab mycron
rm mycron
Comment

setup cron job

# to list all crontab content (including scheduled jobs)
crontab -l

# to edit crontab file
crontab -e

# once you have finished adding tasks, save the file and exit
# the cron daemon will read and execute the instructions provided
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu connect openvpn 
Shell :: django.core.exceptions.ImproperlyConfigured: Requested setting ROOT_URLCONF, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. 
Shell :: install rclone FOR UBUNTU 
Shell :: gulp imagemin 
Shell :: how to add images to git readme 
Shell :: install termius ubuntu 
Shell :: install gitlab runner on centos 
Shell :: how to unzip tar.gz file 
Shell :: git get current branch 
Shell :: sh vs bash 
Shell :: setup git config for multiple accounts 
Shell :: install minikube 
Shell :: minikube memory size 
Shell :: install get cli 
Shell :: find files size greater than 100mb in linux 
Shell :: powershell do while loop 
Shell :: nvm install version 
Shell :: flush ip windows 10 
Shell :: git bring your changes to a new branch 
Shell :: npm install capacitor to existing angular project 
Shell :: octoprint log location 
Shell :: pass parameters to bash script 
Shell :: install latest node js ubuntu 
Shell :: Hello, World! 
Shell :: docker run always pull 
Shell :: Re-run cmake with a different source directory. 
Shell :: bash date of file 
Shell :: bash sed with variable 
Shell :: uninstall ros2 foxy 
Shell :: install node and npm ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =