Operating System - HP-UX
1834646 Members
2060 Online
110069 Solutions
New Discussion

remote reboot iolan+ with telnet

 
iranzo
Frequent Advisor

remote reboot iolan+ with telnet

Hello,
I install an iolan+ (network server) on
an TCPIP network with HPUX server, I should
manage the iolan+ remotely with telnet script :
$telnet iolan << EON
su
password
reboot
quit
EON
telnet is OK,but when iolan reboot the script
not exit and telnet process not stopped automatic .
Thanks a lot.
Bonjour
2 REPLIES 2
Ron Kinner
Honored Contributor

Re: remote reboot iolan+ with telnet

Have you tried creating a file that sleeps 10 seconds, then reboots? You could call the file with nohup or maybe with at now + 1 and it might let your telnet session finish before the reboot causes it to hang.

Ron
harry d brown jr
Honored Contributor

Re: remote reboot iolan+ with telnet

You should really be using

shutdown -r y 0

NOT

reboot


Your use of "reboot" can cause more DAMAGE than it's worth. From the man pages of "reboot":

reboot does not invoke the shutdown scripts associated with subsystems to bring them down in a cautious manner. See shutdown(1M).



live free or die
harry
Live Free or Die