From: Michal Jaegermann <michal@gortel.phys.ualberta.ca>
Subject: Re: background jobs with nohup and &
Date: Thu, 16 Oct 2003 16:58:25 +0000 (UTC) [thread overview]
Message-ID: <bmminh$mc0$1@tabloid.srv.ualberta.ca> (raw)
In-Reply-To: slrnbor9ik.gnn.rob@one.localnet
Robert M. Riches Jr <spamtrap42@verizon.net> 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
next prev parent reply other threads:[~2003-10-16 16:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 19:24 background jobs with nohup and & Shamli
2003-10-15 19:56 ` Robert M. Riches Jr
2003-10-15 20:26 ` Måns Rullgård
2003-10-16 16:58 ` Michal Jaegermann [this message]
2003-10-16 18:16 ` Bill Marcum
2003-10-16 19:09 ` Dave Brown
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox