LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Getting nohup to flush!

[ILUG] Getting nohup to flush!

Kenn Humborg kenn at linux.ie
Sat Mar 10 03:05:23 GMT 2001


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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell