Michael Lankton wrote:
How can I execute a program and leave X cleanly in a shell script? What would I follow the program execution with to exit X?:
[...]
I even installed xtexit and tried :
#!/bin/sh exec program exec xtexit
but it would just exec the first program and stop. Appreciate a nudge in the right direction.
That wouldn't work because 'exec' executes your program but never returns, because it replaces the shell with the new process. If you want your script to execute 'program' and then 'xtexit', your script should be something like this: #!/bin/sh program exec xtexit o that 'xtexit' gets run after 'program'. Hope it helps, Bernardo. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e