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
HristoGrigorov

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
HristoGrigorov

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
HristoGrigorov

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events