[FreeNX-kNX] nxclient Loop

Paul van der Vlis paul at vandervlis.nl
Sat Jan 27 22:19:08 UTC 2007


Fabian Franz schreef:
> Hi,
> 
>>I need a method to see if nxclient has still connection with the server.
>>When nxclient has created succesfull the login to the server. The 
>>nxclient process stops.
> 
>>How do i know when the client is done with the remote session?
> 
> If you just want to respawn the client that can be done easier.
> 
> Create the file: /usr/NX/share/noexit

I use this to detect the end of NXclient and to do a poweroff. With an
extra loop you can also use it to restart NXclient or do what you want.

------------
/usr/NX/bin/nxclient
while [ "`pidof nxssh`" ] ; do
     sleep 1
done
poweroff
---------


With regards,
Paul van der Vlis.


-- 
http://www.vandervlis.nl/




More information about the FreeNX-kNX mailing list