Tuesday, November 12, 2019

Enable - Disable Cron Jobs in Linux/AIX/Unix with single command line input


 Here in this we are using "#outage" to the start of line for all lines in Cron to disable and vice-versa.

Disable :-

crontab -l | sed -e 's/^/#outage/' | crontab


Enable:-
crontab -l | sed -e 's/^#outage//' | crontab


Hope this helps......

No comments:

Post a Comment

PostgreSql: Useful Commands-

 1)   ************************* Users ***************************  -- List of users with roles assigned: SELECT usename AS role_name,   CASE...