Updated May 30, 2003
Created May 30, 2003


Autogenerated Site Map
Search this Site!:
Search this site powered by FreeFind

You can take /sbin/halt and /sbin/reboot from RHL72 and have it work during a RHL9 kickstart install, so I assume it will work on AS2.1, 7.3, and 8.0 as well.

# This is assuming you have the sshd module built in to the kickstart (see ks-pre-sshd.html). Then have /sbin/halt and /sbin/reboot from RHL72 (SysVinit RPM) available on the kickstart client as well.

Then SSH into the kickstart client with the following commands to restart it.

# ./sshblackbox is a special expect script (expect.html) that is non-interactive with me -- one benefit is I don't have to fiddle with passwords, the other is that it is non-interactive.

# Tell the kickstart client to reboot, note: this process will hang
# because SSH won't be closed before the box goes down
# Your local SSH client will still be waiting for more input
./sshblackbox root@192.168.0.11 "./reboot -fi" &

# The following line will give the above SSH reboot command
# a few seconds to complete, then will kill the above reboot command
# because it known that it will be hung
SSH_PID=${!}; sleep 10; kill $SSH_PID

Search this Site!:
Search this site powered by FreeFind

Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html