develooper Front page | perl.beginners | Postings from March 2002

STDOUT

Thread Next
From:
walter valenti
Date:
March 6, 2002 03:13
Subject:
STDOUT
Message ID:
3C85FA41.2050309@yahoo.it
Hi,

i've got a binary executable file, that give a result on STDOUT (shell). 
I'm reditected STDOUT on a file as:

use Getopt::Long;
open(STDOUT,">/usr/local/netsaint/var/tmp") || die"$!\n";
&GetOptions("p=i" => \$port);
$|=1;
system("/usr/local/netsaint/libexec/check_http 127.0.0.1 -p $port");
close(STDOUT);

where check_http is the executable.

After i read and parse the content of this file, i want give a result on 
STDOT (shell), but...

I don't write more on shell !!!

I'm tryied only with on print, and with:

select STDOUT;
$|=1;
print"xxx";

Nothing... i don't write on shell !!!


How i can reallocate the STDOUT on default (shell) ????

Thanks

    Walter


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