You are not logged in.
Pages: 1
Just wondering, certain programs (i.e. firefox) can be executed from the command line and open on their own, returning the command line to the prompt. other programs remain tied to the terminal, so that you can't close the terminal without closing the program also as a result. i tried to find an answer in the forums and around, but is there an argument or setting to use that allows programs to be executed from the command line without being "stuck" in it? Thanks
Offline
Yes, just add "&" to the end of the command then run "disown":
$ firefox http://bbs.archlinux.org/ &
[x] xxxxx
$ disown
The & makes the command run in the background, disown tells the shell to ignore the process, so it won't close when the terminal window closes.
Last edited by skymt (2007-02-06 21:54:17)
Offline
oh okay thanks. seems like a pain =T
Offline
at least you can type
$ command & disown
in one line
Last edited by no24 (2007-02-06 22:35:41)
Offline
$ command &
ctrl+d
When you quit shell (not just close term) programs in background keep running
IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686
Offline
i use a .bashrc function, maybe you'll find it useful
quiet (){
nohup $1 &>/dev/null &
}
just paste that in your.bashrc and now you can execute things like quiet firefox (:
Offline
oh, almost forgot, add this also so it autocompletes
complete -A command quiet
Offline
awesome thank you
Offline
Pages: 1