PDA

View Full Version : [ubuntu] program continues running without keeping terminal open?


hatten
February 11th, 2009, 10:32 AM
If i use the command "Transmission", transmission will start and everything. But is there an option or similar that continues having it running "in the background" so that i don't need to have a terminal open for every program i use.
"man Transmission" didn't help me.

howefield
February 11th, 2009, 10:35 AM
Open it from the menu option.

Applications > Internet > Transmission Bittorrent Client

Or use the run box, press ALT + F2 and type transmission


Or have I misunderstood ?

lykwydchykyn
February 11th, 2009, 10:37 AM
If you append a "&" to the end of the command line, it will run in the background. If you prepend it with the command "nohup", it will continue to run if the terminal is closed. So you'd want to do like this:


nohup Transmission &


If you forget to use "nohup" before launching a command, you can find the process id and disown it like this:

disown 1111

Where 1111 is the process id of the process you want to disown.

If you forget the &, you can hit ctrl-z to suspend the process, then "bg" to cause it to continue in the background.

hatten
February 11th, 2009, 10:46 AM
If you append a "&" to the end of the command line, it will run in the background. If you prepend it with the command "nohup", it will continue to run if the terminal is closed. So you'd want to do like this:


nohup Transmission &


If you forget to use "nohup" before launching a command, you can find the process id and disown it like this:

disown 1111

Where 1111 is the process id of the process you want to disown.

If you forget the &, you can hit ctrl-z to suspend the process, then "bg" to cause it to continue in the background.
perfect, thanks:popcorn:

hatten
February 11th, 2009, 05:40 PM
how do i find the ID of a program?

howefield
February 11th, 2009, 05:47 PM
System > Administration > System Monitor

5th column in the processes tab.

hatten
February 11th, 2009, 05:57 PM
and in the terminal?

howefield
February 11th, 2009, 06:23 PM
Try pidof program, eg

pidof pidgin


man pidof

lykwydchykyn
February 12th, 2009, 12:23 AM
You can get a full list of processes with their id's using:
ps -e

jpeddicord
February 12th, 2009, 09:45 PM
This thread or post has been moved from the Desktop Effects & Customization forum as the posted content is considered off-topic.

Desktop Effects & Customization is a forum for discussing:

Compositing managers such as Compiz
Themes (window themes, widget themes, backgrounds, etc)
Appearance preferences

Your post did not fit any of these categories, so it has been moved.

Common types of off-topic threads include:

GNOME/KDE/XFCE help in general
Hardware problems not directly related to compositing


Thanks,
Jacob

hatten
February 13th, 2009, 02:25 AM
Oh thanks, i was not entirely sure where to put it. I'll be sure to remember it until next time =)