Questions and Answers : Unix/Linux : How do I run BOINC without a parent terminal?
Message board moderation
Author | Message |
---|---|
Send message Joined: 29 Jun 06 Posts: 3 Credit: 4,077,141 RAC: 0 |
Hi, This is nothing critical, I just dont like to keep the terminal window open in X. I tried the command \"sh run_client &\" but it doesn\'t seem to have the effect. When I close the terminal window in X or log off from the tty that I started the process, the client exits. Is there another way to do this? Thanks, hako |
Send message Joined: 16 Jun 05 Posts: 10 Credit: 20,676,311 RAC: 0 |
Hi, you can try this: cd BOINC_DIR; nohup ./BOINC_BIN >/dev/null 2>&1 & Mike. |
Send message Joined: 29 Jun 06 Posts: 3 Credit: 4,077,141 RAC: 0 |
Thanks, This worked excellently. May I ask two questions though?
|
Send message Joined: 9 Nov 04 Posts: 1 Credit: 20,896 RAC: 0 |
>/dev/null sends all the output that would normally be shown on the terminal screen to a linux version of \'nowhere\'. The ampersands release the terminal from the job (works with any command so you can carry on using the terminal after the job has run). Not sure about the 2>&1. |
Send message Joined: 17 Dec 04 Posts: 2 Credit: 1,161,971 RAC: 572 |
Not sure about the 2>&1. \"2>&1\" expression redirects standard error to standard output, and since the latter has already been redirected to nothing (/dev/null) with the previous statement (>/dev/null), that makes both standard output and error redirected into nothingness :) (and your terminal screen free of any messages). The same thing can be accomplished with a single expression (they can both be redirected into nothingness): &>/dev/null If you wanna know more: \"man bash\" \"REDIRECTION\" paragraph |
©2024 cpdn.org