Im trying to create a custom xsession on Ubuntu 10.04 that will launch nxclient and logout automatically when it closes.
This is what I have so far
How would I go about altering this script to logout when nxclient closes? To make this more complicated, nxclient spawns a separate process (nxssh) when it logs in and closes itself.
Is it possible for a script to listen for a child process to close and then execute some commands (in this case a logout)?
Apologies if I haven't explained it very well but I'm new to linux scripting
Thanks for reading,