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

Restarting SMB using script

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

0 Kudos
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

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
Douglas_Chenjer
Contributor

Kindly share

0 Kudos

0 Kudos