Click to See Complete Forum and Search --> : Run program in background


Super Bakemono
08-26-2001, 05:03 AM
How can I run a program so it doesn't take the console and runs by it self I guess outputing to /dev/null or something

Malakin
08-26-2001, 05:27 AM
You can run it like this "program &" or "program > /dev/null &" or after you've run it hit "ctrl-z" and then type "bg".

Screen is pretty cool, here's a quick howto. Type "screen program" then "ctrl-a, ctrl-d" to detach it, "screen -list" to see all the detached programs running, "screen -r" to reattach the last program, "screen -r pid" to reattach it by pid.

Super Bakemono
08-26-2001, 05:34 AM
thanx alot

TacKat
08-26-2001, 07:23 AM
Screen is great for running processes in the background. Unlike using "bg", you don't have to be connected to the same terminal to get control of the process again. As long as you login under the same name, not matter where you are you can use the things you "screened".