* SUMMARY Help! "End Session" from X now cant get back on!!
@ 1995-11-02 16:12 GANet Engineer
0 siblings, 0 replies; only message in thread
From: GANet Engineer @ 1995-11-02 16:12 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-11-02 16:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-02 16:12 SUMMARY Help! "End Session" from X now cant get back on!! GANet Engineer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox