X
X

Select Your Currency

Türk Lirası $ US Dollar
X
X

Select Your Currency

Türk Lirası $ US Dollar
Yıllık Satın Alımlarda %15 İndirim: Şimdi Tasarruf Edin! Detaylı Bilgi İçin Tıklayın!

Knowledge Base

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?
(123 times viewed. / 0 people found helpful.)