SOLVED Help with Cron Job shutdown

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
I'm very new so forgive me, but I have searched for the answer but not finding what I need. I made a cron job to shut the PC off and its working. But the job is set for 12am and that's the part I cant change. I saw a video on the matter for TrueNAS but I can't find it now. In the video it had more options then what i'm seeing.

Shutdown.PNG
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Click the down arrow on the right, where the schedule appears.
 

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
Thank you, for some reason I didn’t see the custom selection. I also had the wrong command so it wasn’t running unless I clicked test.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
cron runs with a limited PATH, so always use the full command path in your cron jobs. I.e., use /sbin/shutdown in your job.
 

rhconcepts

Dabbler
Joined
Jan 24, 2022
Messages
13
cron runs with a limited PATH, so always use the full command path in your cron jobs. I.e., use /sbin/shutdown in your job.
Thank you, I now have /sbin/shutdown -p now
 
Top