Shutdown ubuntu/CentOS/RHEL system using crontab

Run command from user to set cron

For Ubuntu system
$ sudo crontab -e

For CentOS/RHEL system
#crontab -e

00 18 * * * /sbin/shutdown -h now

Check Crontab status

$ sudo crontab -l
or,
#crontab -l

Now cron is set for system shutdonw at 6 PM .
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment