Front page | perl.beginners |
Postings from March 2002
From: walter valenti
March 6, 2002 03:13
Message ID: 3C85FA41.email@example.com
i've got a binary executable file, that give a result on STDOUT (shell).
I'm reditected STDOUT on a file as:
open(STDOUT,">/usr/local/netsaint/var/tmp") || die"$!\n";
&GetOptions("p=i" => \$port);
system("/usr/local/netsaint/libexec/check_http 127.0.0.1 -p $port");
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:
Nothing... i don't write on shell !!!
How i can reallocate the STDOUT on default (shell) ????