develooper Front page | perl.perl6.users | Postings from June 2018

Re: using run

Thread Previous | Thread Next
From:
Theo van den Heuvel
Date:
June 20, 2018 17:48
Subject:
Re: using run
Message ID:
f6ffce0df83ebba2101baa3827bd865e@heuvelhlt.nl
Hi Brandon,

I used the wrong term there. I meant to say: put in a file. Sorry for 
the confusion.

Theo

Brandon Allbery schreef op 2018-06-20 17:58:
> If you're going to use terms in a different way than what they
> actually mean, it's going to be difficult to produce something that
> does what you believe it should do *and* what it should actually do.
> 
> A pipe is for communication with a process. "Piped to a file" means
> what? What's the process you're communicating with?
> 
> More to the point, "run" is intended to be lower level, specifically
> so you can directly control things. Things like redirection and shell
> pipelines are higher level.
> 
> That said, :out and :err are incompletely documented; the form that
> tells it to create pipes so your script can communicate with the
> process is there, but you can also specify handles to attach them to.
> In which case you would open a file, then say :out($myHandle) to
> attach the process's stdout to the handle $myHandle.

> 
> brandon s allbery kf8nh                               sine nomine
> associates
> allbery.b@gmail.com
> ballbery@sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About