Launching graphical programs from a terminal window
Joe(theWordy)Philbrook
jtwdyp at ttlc.net
Sat Feb 4 20:32:36 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It would appear that on Feb 3, Peter Garrett did say:
> Actually, you'll find that simply using "command-here &" doesn't detach the
> program - just puts it in the background. Thus normally closing the
> terminal will also close its child processes, including the backgrounded
> ones.
>
> What you can do, however, is issue the command
>
> jobs
>
> to see which processes are running in the background, then issue
>
> disown %2 (or %1 or whatever the number of the process is)
>
> when you close / exit the terminal, the "disowned" program will continue
> running.
>
Wouldn't it be simpler to use nohup???
Extract from "info coreutils nohup":
=> 22.4 `nohup': Run a command immune to hangups
=> =============================================
=>
=> `nohup' runs the given COMMAND with hangup signals ignored, so that the
=> command can continue running in the background after you log out.
=> Synopsis:
=>
=> nohup COMMAND [ARG]...
My reasoning is if you can even logout without hanging up the process,
you should dang sure be able to close the terminal window.
If I'm wrong, then surely someone wiser will correct me...
Joe
#############################################################
##_if_you'd_prefer_an_clearsigned_".asc"_text_file_of_this_##
##message_as_an_mime_encoded_attachment,just_ask_me_while__##
##it's_STILL_IN_my_outbox_folder_._._._=+=+=+=+=+=+=+=+;-)_##
#gpg sig for: Joe (theWordy) Philbrook DSA key ID 0x6C2163DE#
# You can find my public gpg key at http://pgpkeys.mit.edu/ #
#############################################################
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFD5Q8pRZ/61mwhY94RAvjJAKCtQAMlqUgjJPoR8oMgl9EdfeE/CQCfREMQ
4MzsjvwbICXHh8YU688vyq8=
=o3Eb
-----END PGP SIGNATURE-----
--
| --- ___
| <0> <-> Joe (theWordy) Philbrook
| ^ J(tWdy)P
| ~\___/~ <<jtwdyp at ttlc.net>>
More information about the ubuntu-users
mailing list