Tim Stephen wrote:
> I'm looking for a command to execute from a rexx program that will
> shutdown the system and not reboot it. I have a wireless print server
> on my lan that is not on a UPS. My ecs system pings the print server
> every 60 seconds and parses the ping output to make sure that the
> print server is online. If pings fail consistently for 15 minutes,
> the assumption is that the print server is off line due to a power
> outage and the ecs system is running on the UPS and so it should shut
> itself down before the UPS battery depletes.
>
> The trouble is that the shutdown command by itself will not execute it
> there are active sessions. Instead it pops up a pm window and asks if
> you really want to kill the active sessions, or something like that.
>
> Setboot is only good for rebooting (I think).
Sounds like a familiar problem I had when I ran a bulletin board at home
(more than 10 years ago now). During holidays I wanted it once per day
to shutdown gracefully before a power cut-off by a timer-switch and a
few minutes later perform a cold restart without chkdsk asking for
permission to recover files....
I solved this by specifying the drive letter of a non-bootable partition
with the SetBoot command (/IBD:x). I'm afraid I don't remember the
details, but this was the basic idea.
Regards, Rob.
--
Rob Hamerling, Vianen, NL (
http://www.robh.nl/)