[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to "start" in RedHat



Rick Stevens wrote:

M.Hockings wrote:

Michael Ault wrote:

There is the nohup command or to run in background use
the "&" suffix for the command line.

# nohup runthis

or

# runthis &

Mike

=====
Michael R. Ault
Senior Technical Management Consultant
TUSC -- The Oracle Experts WWW.TUSC.COM


Thanks Michael,

The '&' did the trick !


Keep in mind the differences between "nohup", "bg" and "&".

"nohup" runs the program in the background and redirects its stdout and
stderr output streams to a "nohup.log" file in the current directory.

"bg" (available in the bash shell) allows a current foreground program
to be moved to the background, stdout and stderr remain directed at the
current terminal.

The "&" suffix launches the program in the background with stdout and
stderr directed to the current terminal
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens vitalstream com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-  You know the old saying--any technology sufficiently advanced is  -
-               indistinguishable from a Perl script                 -
-                                 --Programming Perl, 2nd Edition    -
----------------------------------------------------------------------

Rick,

Thanks for the extra explanation, what would you recommend as a good reference for this sort of thing. I tried googling for it but terms like "nohup" didn't come to mind when thinking "start" ;-) An online ref or a good book if you know of one you would recommend.

I tried the nohup after reading Michael's note but the console still seemed to be suspended (i.e., I could not enter further commands) and the '&' suffix seemed to get around this. This is trying to start Seti Home at startup. I have a wee script that basically contains the lines below and was attempting to launch it at startup time. Since I'm already trying to discard the stdout and stderr output I presume that the '&' will be fine. BTW, Without the '&' it is a wee bit distracting for it to start and hog the console thus stopping the startup process. But I was able to overcome that without even begging the list's assistance -- what is the next step beyond Linux newbie ? newbie++ maybe ??

cd seti-home-dir
./setiathome -nice  > /dev/null 2> /dev/null

Kind regards,

Mike




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]