parallel
[Top][All Lists]
Advanced

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

Detecting stdout


From: Kip Warner
Subject: Detecting stdout
Date: Mon, 11 Apr 2016 17:28:58 -0700

Hey list,

I was previously feeding a list of files into my software using
parallelized invocation like so:

    $ find . -type f -print0 | xargs --null ... my_program

This worked great. Since replacing xargs with GNU parallel, I'm finding
performance is better because of the dynamic load balancing (e.g. -
-load=90%).

Something strange though happened during the migration. Previously
my_program was able to detect correctly when the standard out device
was an actual terminal via a call at runtime to isatty(STDOUT_FILENO). 

I noticed with GNU parallel, however, this same function seems to
report a terminal is not open for stdout even when it is. Is this a bug
in GNU parallel? Or more likely I am doing something wrong.

Yours truly,

-- 
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]