How 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-
How to Open Ports in Windows?
427 2
-
How to Grant Windows Administrator Privileges?
326 0
-
How to install Webmin on Ubuntu?
980 2
-
Linux SSH Terminal Commands and Explanations
909 3
-
CentOS Stream 10 Update Commands
988 1
-
CentOS Stream 9 Update Commands
1533 2
-
CentOS Stream 8 Update Commands
763 0
-
What is FreeBSD?
955 2
-
Out: 452 4.3.1 Insufficient system storage
838 2
-
Turning Off Automatic Updates in Windows Operating Systems
964 0