From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075325006446.tru64-unix-managers.marc@archive.invalid> From: GANet Engineer Date: Thu, 02 Nov 1995 16:12:13 +0000 To: tru64-unix-managers Subject: SUMMARY Help! "End Session" from X now cant get back on!! X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075325006446 Many thanks to all who helped me with this one. The key fix came from Hellebo Knut who suggested I use an rexec call to shutdown and restart the xdm server. So, instead of powering down the machine and crashing all the disks, I successfully got control of the machine again. Here is the C I used: #include main() { int zero = 0; char *out[] = { "hostname" }; rexec((char **)out,512,"rootuser","rootpassword", "/sbin/init.d/xdm stop",&zero); perror("exec()"); } and on solaris I linked with -lnsl -lsocket. (in case anyone needs this fix). - BRad