On Wednesday 25 Nov 2009, Arun Khan wrote: > On Wednesday 25 Nov 2009, Vijay Kumar wrote: > > File:/etc/inittab > > - ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now > > + ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now > > > > And then use the following monitor command, to generate a > > ctrl-alt-delete sequence, when the system has to be halted. > > > > sendkey ctrl-alt-delete > > This is something definitely worth exploring. Thanks for the tip!
The following does the job beautifully and should be guest OS [1] independent! echo "system_powerdown" | socat - UNIX-CONNECT:<[2]> [1] tested with host openSUSE 11.1 and guestCentOS 5.3 KVMs - should work with other Linux. No idea about Windows guest. [2] socket file created with the -monitor option -- Arun Khan _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
