in reply to open handle

In addition to the two-way pipe proble, I think your die is in the wrong place too. You want to die if the open failed, so it should be outside the parentheses.

open(HANDLE, "|cmd ss get $/Tate_SP2/$dir/$fname -Ybarbarat,12345|" ) +|| die "Couldn't run pro +cess:$!";

instead of

open(HANDLE, "|cmd ss get $/Tate_SP2/$dir/$fname -Ybarbarat,12345|" || + die "Couldn't run pro +cess:$!" );

Replies are listed 'Best First'.
Re^2: open handle
by gitarwmn (Beadle) on Dec 06, 2006 at 22:39 UTC
    Thanks for the corrections, I made many mistakes but it seems to be working now.
    Now is it possible to get this to work from a cgi script? I've tried it as a perl script and it works but when I try it from a browser as a cgi script it times out.