Cronie
Basic Command
Install (arch/endeavour)
sudo pacman -S crounieService start, status, restart, stop
sudo systemctl start cronie
sudo systemctl status cronie
sudo systemctl restart cronie
sudo systemctl stop cronieService enable or disable on startup
sudo systemctl enable cronie
sudo systemctl disable cronieDisplay the contents of the crontab file of the currently logged in user
crontab -lEdit the current user's cron jobs
crontab -eAdd Task
Create example file
mkdir ~/.local/bin
nano cronie-example#!/usr/bin/env sh
croniedir=/home/spot/spotspace/cronie-example
cd $croniedir
git pull github master -q
result=$(git status --porcelain | wc -l)
if [[ $result -eq 0 ]] ; then
exit 0
fi
git add .; git commit -q -m "$(date +"%c")"; git push github master -qPut to crontab
crontab -e@reboot /bin/sleep 120 ; /home/spot/.local/bin/cronie-exampleNote
In ubuntu cron is installed by default. but cron is deferent with cronie.
Reference
Last updated