[ILUG] Getting nohup to flush!
Gavin McCullagh
gavinmcc at netsoc.ucd.ie
Sat Mar 10 11:55:08 GMT 2001
Thanks, those were all very interesting answers.
Gavin
On Sat, 10 Mar 2001, Kenn Humborg wrote:
> On Fri, Mar 09, 2001 at 09:40:51AM +0000, Gavin McCullagh wrote:
> >
> > Hi,
> >
> > quick question here, don't know if this is possible or if anyone
> > will have any answers. I frequently run a script which will go for maybe
> > acouple of weeks running various computations. Due to the time involved,
> > it is sensible use nohup, in order that should I log out, or X gets
> > restarted or the network connection to that machine goes down (etc
> > etc...), the script keeps going regardless.
>
> Not the question yo uwere asking, but...
>
> If you use bash, there's no need for nohup. Just background the job.
> Bash will automatically do the necessary magic to keep the job alive
> one the shell quits. I use it regularly for big wget jobs overnight
> at the office:
>
> wget <url> &
> logout
>
> Come in in the morning, and it's done.
>
> Regarding flushing stdout of another process - don't think there is
> any way to do this. The data is buffered in the process's libc, not
> in the kernel, so it's a user-land problem, rather than a kernel
> issue.
>
> Later,
> Kenn
>
>
More information about the ILUG
mailing list