0
Im trying to execute a program with xterm and then close xterm with program running but it seems this doesn't work like I would expect it.
In bash there is the option bash -c [command]
is there something in xterm too? Currently im using xterm -e [command]
but this keeps the xterm window open till' my program has finished. But I want to open it, run the program, close it and keep the program running.
Why i want have a program startet through xterm when im not even using it? Im calling this through xpra on another computer but its not possible to only launch the program because i need it with the environment on the other pc.
Is there a way to do it?
That looked good for the first try even if it seemed like it just got my open windown on the one machine to tho other and didnt open a new one. But now i cat get it to work anymore with nohup. What is the exact syntax? I tried
xterm -e 'nohup sleep 5000 /path/to/program'
But then i only tryxterm -e '/path/to/program'
it works again with the unwanted xterm window. – Julian – 2018-03-09T09:28:18.773