Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Douglas_Chenjer
Participant

Restarting SMB using script

Please assist with a script to automate restarting SMBs at timed intervals

0 Kudos
Reply
5 Replies

What about this one:

# echo "*/5 * * * * echo y | reboot" >> /pfrm2.0/etc/crontabs/root

John_Fleming
Advisor

Every 5 mins seems a bit excessive. 😄

0 Kudos
Reply

You ruined all the fun John 😀

Seriously, crontab entry needs to be adapted to whatever time suits you. Plenty of docs about that on Internet.

0 Kudos
Reply
Douglas_Chenjer
Participant

Kindly share

0 Kudos
Reply

0 Kudos
Reply