From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,cf04371fd6186e4b X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2003-10-16 10:00:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!news.UVic.CA!cyclone.bc.net!tabloid.srv.ualberta.ca!not-for-mail From: Michal Jaegermann Newsgroups: comp.os.linux.alpha Subject: Re: background jobs with nohup and & Date: Thu, 16 Oct 2003 16:58:25 +0000 (UTC) Organization: Disorganized Bits Message-ID: References: <5b97e376.0310151124.580fe46a@posting.google.com> NNTP-Posting-Host: gortel.phys.ualberta.ca X-Trace: tabloid.srv.ualberta.ca 1066323505 22912 129.128.7.128 (16 Oct 2003 16:58:25 GMT) X-Complaints-To: abuse@ualberta.ca NNTP-Posting-Date: Thu, 16 Oct 2003 16:58:25 +0000 (UTC) User-Agent: tin/1.5.13-20020614 ("Sugar") (UNIX) (Linux/2.4.20-20.7 (i686)) Xref: archiver1.google.com comp.os.linux.alpha:53 Robert M. Riches Jr wrote: > In article <5b97e376.0310151124.580fe46a@posting.google.com>, Shamli wrote: >> I am have a program runs under alfha. > > At least for RHL 8.0, the nohup info page says it sends > output to a file, but when I ran 'nohup ls' it sent the > output to the xterm from which the command was launched. That way your stdio is attached to a terminal you happen to be using so this is not a big surprise > Maybe the info page might be inaccurate. Maybe not the most clear. Here what is says among other things: `nohup' does not automatically put the command it runs in the background; you must do that explicitly, by ending the command line with an `&'. There is really no point of running nohup jobs in a foreground as this is not doing anything really exciting. Also jobs running from 'cron' or 'at' really do not have "backgroud" so using nohup there does not make much sense either (by default stdout and stderr to of such jobs is piped to some mail user agent, a.k.a. MUA) so nohup is really for an interactive use. Try 'nohup ls &' and see what will happen. :-) You can indeed redirect output of these commands to some other file than 'nohup.out' but you will have to do that explicitely. Michal