0

cron should work only on reboot

How to setup the cron but it should work only if i reboot my machine.

I have a script to run once my system is started i.e. rebooted.

brayden
asked May 13, 2017
1 Answer
0

For that just give @reboot in crontab instead of * * * * * as follows.

 # crontab -e
 @reboot  /bin/sh /home/user1/test.sh
View More
jagannatharumugam
answered May 14, 2017
Your Answer
||||
x
 
100:0