Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

My blog about Open Source: Zimbra Mail Server,linux,bash script,centos,linux command...

How to write cron job from linux command

In this tutorial, How do i use linux command write cron job.

Crontab example

Run cron job At every 15th minute for zimbra_full_backup.sh
*/15 * * * * /opt/scripts/zimbra_full_backup.sh
https://crontab.devopsroles.com/


Write cron job from linux command


[[email protected] huuphan.com]# echo "$(crontab -l; echo '*/15 * * * * /opt/scripts/zimbra_full_backup.sh')" | crontab -

The screen output terminal:


Conclusion


Thought the article, How to write cron job from linux command as above . I hope will this your helpful.

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com

This Blog is protected by DMCA.com