Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shutdown command in crontab 1

Status
Not open for further replies.

remsauk

MIS
Sep 26, 2002
26
US
Hi...

I want my RS/6000 running AIX 5.1 to reboot over the weekend at the job site (while I'm at home) Can I add the following to my crontab;

0 7 * * 6 shutdown -r

or would it be better to put the command in a script in my root directory...

0 7 * * 6 /myshutdown

Thanks
 
I have had a system doing this for the last year without a problem.

# Sunday ReBoot at 8PM
0 20 * * 0 /usr/sbin/shutdown -Fr


 
Hi LinuAIX...

I'll give that a try...


Thanks
 
This would work however you need to remember to remove the entry or the server would reboot every weekend.
For a one off reboot like this I usually schedule an 'at' job to do the reboot.
 
Hi haexpert...

That's something to think about...I also maintain AS/400's and they IPL (reboot) weekly...but I may have the AIX server reboot monthly...or every so often...

Thanks
 

Just a question... Why do you need to reboot AiX and AS/400 boxes? We have a bunch of them, some had over 300 days uptime when a power intake failure ruined the machine room last week.
Wouldn't be enough restarting only apps?

--Trifo
 

Why don't you run windows? It does it all by itself, unexpectedly even...!!

Cheers
 
Hi..

Regarding rebooting the AS/400's...that schedule was set up prior to my getting here...but the IBM contacts/vendors I use have no problems with it and it's worked out well..we're running Lotus Notes on one and several other apps on the other...I had been rebooting the RS/6000 server prior to software upgrades but would like to reboot that at least monthly...our network people currently reboot Windows servers every two weeks. I'm fairly new to the IT world but I've found our AS/400 and AIX servers to be far more stable and reliable than Windows servers...I especially like the AS/400.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top