develooper Front page | perl.perl5.porters | Postings from March 2006

Re: [perl #38748] qx seems to loose the subpr. way for print /dev/tty

Thread Previous
From:
Rafael Garcia-Suarez
Date:
March 17, 2006 06:25
Subject:
Re: [perl #38748] qx seems to loose the subpr. way for print /dev/tty
Message ID:
b77c1dce0603170625s7f7f53d6q81db80980f7561f9@mail.gmail.com
On 3/17/06, via RT ende <perlbug-followup@perl.org> wrote:
> while (1) {
>      `/Users/home/bin/tclprocThatusesdevtty.tcl -a`;

What happens if you use system() instead of `` ? system doesn't
intercept the output of the command like `` does -- `` being intended
to capture output, not to simply run an external program.

>      # .....
>      sleep 600;
> }
>
> only the first time the Tcl program is runned, the messages sent
> by the Tcl program are really sent to the /dev/tty.  Then, no more
> messages are seen in the Terminal.  The perl script seems
> running ok all the time and the Tcl program also seems been called...

Thread Previous


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