From: GANet Engineer <bradb () s1 ! GANet ! NET>
To: tru64-unix-managers
Subject: SUMMARY Help! "End Session" from X now cant get back on!!
Date: Thu, 02 Nov 1995 16:12:13 +0000 [thread overview]
Message-ID: <96075325006446.tru64-unix-managers.marc@archive.invalid> (raw)
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 <stdio.h>
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
reply other threads:[~1995-11-02 16:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox