• Home
  • Free Stuff
  • About
  • Contact

Create a Crontab Through a Script

July 29, 2019

Single line script for creating crontab entry :

(crontab -l 2>/dev/null; echo “*/15 * * * * /path/to/script.sh 2>&1”) | crontab –

Ref : https://stackoverflow.com/questions/4880290/how-do-i-create-a-crontab-through-a-script

Share

Linux

Masim "Vavai" Sugianto
Traveller, Open Source Enthusiast & Book Lover. Works as Independent Worker & Self-Employer.

Leave A Reply


Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Recent Posts

    • Januari 2021 Portfolio Update
    • December 2020 Portfolio Update
    • After a While
    • Life goes On : Farming
    • Pursuing FIRE in Indonesia : Are You Prepared For A Recession?
    • VirtualBox Error Kernel Driver not Installed (rc=-1908) on Zorin OS 15.2
    • ZorinOS on Intel NUC Hades Canyon Series NUC817HVK
    • Banana Farm
    • Zorin OS 15.2 Ultimate
    • Haraka and LDAP Authentication with Zimbra



© Copyright LetsBlog Theme Demo - Theme by ThemeGoods