You are not logged in.
Hi!
How can I start an (x/gtk) - application from a terminal without it being "blocked" while the application runs (p.e. to run a file manager as another user while being able to still use the terminal I'm logged inton as that user)?
(Also things like this are very hard to find, if you don't already know what you're searching for - at least for me. Is there a wiki article about some "common general stuff" like that or would it make sense to start one? )
Thanks!
Last edited by whoops (2009-04-29 19:21:36)
Offline
app &>/dev/null &
Offline
$ appname &
$ appname
<ctrl-z>
$ bg
$ nohup appname & <-- allows you to kill the terminal without losing the app.
$ appname &
$ disown <-- also allows you to kill the terminal without losing the app.
These are the few I've used in the past. It's quite possible that these don't work with all shells.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
If i understand you correctly, you want to "background" the job... To do that, you start it with an ampersand (&) behind it's name, like so
pcmanfm &
if you forgot to do that, you can always press CTRL-z to put the job on hold and then issue "bg" to put it in the background. Use the "jobs" command to view all currently running jobs.
The jobs will die when you close the terminal. If you don't want that, have a look at gnu screen
Also google "bash job control". That should get you up to speed
EDIT: thanks for the nohup and disown things Didn't know those yet
Last edited by klixon (2009-04-29 19:16:21)
Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!
Offline
Jupp, that does it, thx!
Offline