1752520 Members
4848 Online
108788 Solutions
New Discussion

Hp console using putty

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: Hp console using putty

>Matti: A script such as this ... (disclaimer: not tested):

I tested your script and have some corrections:
#!/bin/sh
for i in /sbin/rc?.d; do
for j in $i/S*; do
if [ ! -f "$j" ]; then continue; fi
echo "Startup script $j:"
sh -c "$j start_msg"
done
for j in $i/K*; do
if [ ! -f "$j" ]; then continue; fi
echo "Shutdown script $j:"
sh -c "$j stop_msg"
done
done