Re: using run

2018-06-21 Thread Theo van den Heuvel
Hi Brad, Ha. Now that is exactly what I was looking for. It felt a bit clumsy having to first collect the material in a string and then print that string. This is nice. Thanks, Theo Brad Gilbert schreef op 2018-06-21 19:47: :out can take an argument ... my $fh = open 'foo.txt',

Re: using run

2018-06-21 Thread Brad Gilbert
:out can take an argument On Wed, Jun 20, 2018 at 10:32 AM Theo van den Heuvel wrote: > > Hi all, > > trying to make sense of the documentation on run: > https://docs.perl6.org/routine/run. > In particular the last part. I don't understand the adverbs :out and : > err there. > Can I set it up

Re: using run

2018-06-20 Thread Brandon Allbery
I don't manage the docs. But a ticket has already been opened: https://github.com/perl6/doc/issues/2111 On Thu, Jun 21, 2018 at 12:59 AM Todd Chester wrote: > > > On 06/20/2018 08:58 AM, Brandon Allbery wrote: > > A pipe is for communication with a process. "Piped to a file" means > > what?

Re: using run

2018-06-20 Thread Todd Chester
On 06/20/2018 08:58 AM, Brandon Allbery wrote: 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

Re: using run

2018-06-20 Thread Todd Chester
On 06/20/2018 08:15 AM, Theo van den Heuvel wrote: Hi all, trying to make sense of the documentation on run: https://docs.perl6.org/routine/run. In particular the last part. I don't  understand the adverbs :out and : err there. Can I set it up so that the output is piped into a file

Re: using run

2018-06-20 Thread Theo van den Heuvel
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

Re: using run

2018-06-20 Thread JJ Merelo
El mié., 20 jun. 2018 a las 17:32, Theo van den Heuvel (< vdheu...@heuvelhlt.nl>) escribió: > Hi all, > > trying to make sense of the documentation on run: > https://docs.perl6.org/routine/run. > In particular the last part. I don't understand the adverbs :out and : > err there. > Posted as an

Re: using run

2018-06-20 Thread ToddAndMargo
On 06/20/2018 08:15 AM, Theo van den Heuvel wrote: Hi all, trying to make sense of the documentation on run: https://docs.perl6.org/routine/run. In particular the last part. I don't  understand the adverbs :out and : err there. Can I set it up so that the output is piped into a file directly?

Re: using run

2018-06-20 Thread Brandon Allbery
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

Re: using run

2018-06-20 Thread Theo van den Heuvel
thanks. That helps Jonathan Scott Duff schreef op 2018-06-20 17:50: If you don't specify the :out adverb, then the output of the program you are running will be sent to standard output. Immediately when the program executes. If you specify the :out adverb, output from the program will be

Re: using run

2018-06-20 Thread Jonathan Scott Duff
If you don't specify the :out adverb, then the output of the program you are running will be sent to standard output. Immediately when the program executes. If you specify the :out adverb, output from the program will be available for capture via the $proc.out method. A similar thing applies

Re: using run

2018-06-20 Thread Simon Proctor
If you're wanting to run a command and have the output go directly to a file you might want to look at shell? https://docs.perl6.org/routine/shell You can still get back a Proc object and specify if you want access to the input, output of error handles. So if you wanted to call an external

using run

2018-06-20 Thread Theo van den Heuvel
Hi all, trying to make sense of the documentation on run: https://docs.perl6.org/routine/run. In particular the last part. I don't understand the adverbs :out and : err there. Can I set it up so that the output is piped into a file directly? If so how would I write that? I know I could use