How i restart my mint after 24 hours automatically

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
harryctg

How i restart my mint after 24 hours automatically

Post by harryctg »

Hello sir
how i restart my linux mint after 24 hours running automatically .

what will be the command plz help me any one
regards
harry
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Hawk554

Re: How i restart my mint after 24 hours automatically

Post by Hawk554 »

You will probably want to use the command crontab. You can look up the syntax at http://ss64.com/bash/crontab.html, great resource I use all the time when the man pages don't work for me.
User avatar
Pilosopong Tasyo
Level 6
Level 6
Posts: 1432
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: How i restart my mint after 24 hours automatically

Post by Pilosopong Tasyo »

Use shutdown to reboot after 1,440 minutes and cron to schedule shutdown to run once at startup.
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
Locked

Return to “Scripts & Bash”