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 :: batch delete all folders and files 
Shell :: ffmpeg video size reduction 
Shell :: pipi ungrade 
Shell :: add group 
Shell :: docker-compose: line 1: Not: command not found apt get 
Shell :: add local gitignore file 
Shell :: vieuw the MOTD linux 
Shell :: print in bash 
Shell :: git squash commits 
Shell :: php artisan doctrine migrations add all 
Shell :: run minecraft server linux 
Shell :: how to delay a script from running linx terminal 
Shell :: get ip address linux 
Shell :: add git in project 
Shell :: expo uninstall 
Shell :: gnome shell extensions 
Shell :: composer installation cmd 
Shell :: Git command to Change the Author Information Just for the Next Commit 
Shell :: what is a nuget package 
Shell :: ubuntu monitor io 
Shell :: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. 
Shell :: install npm windows subsystem linux 
Shell :: install kubebuilder in macbook pro 
Shell :: Github code for update 
Shell :: git submodule 
Shell :: set ubuntu display landscape 
Shell :: online c compiler with working fork 
Shell :: download clamav via terminal 
Shell :: delete everythng after a certain commit 
Shell :: perl install Switch 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =