X

Select Your Country

Turkey (Türkçe)Turkey (Türkçe) Worldwide (English)Worldwide (English)
X

Select Your Currency

Türk Lirası $ US Dollar

How to Add Rows to Ubuntu CronTab

How to Add Rows to Ubuntu CronTab
HomepageKnowledge BaseServer/VPS/VDSHow to Add Rows to Ubuntu CronTab
How to Add Rows to Ubuntu CronTab

For example ;

To restart nginx service every 5 minutes:


crontab -I | {cat; echo ''/5 * * * *  systemctl restart nginx''; } | crontab -

 

To add crontab script to mehmet user:

crontab -u  mehmet -I | {cat; echo ''/5 * * * * systemctl restart nginx''; } | crontab -u mehmet -

Can't find the information you're looking for?

You have examined the knowledge base in detail, but if you cannot find the information you need,

Create a Support Ticket
Did you find it useful?
(488 times viewed. / 1 people found helpful.)