in reply to Re^4: passing vars to a sub
in thread passing vars to a sub

Try doing this:
$cmd = "/usr/bin/lpstat -h $server_name -o"; print $cmd, "\n"; @STATUS = qx/$cmd/;
Just to see what the command line is each time... we're really just getting into prints for the sake of debugging here... I'm not sure why it's not working.
--------------
It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs

Replies are listed 'Best First'.
Re^6: passing vars to a sub
by tcf03 (Deacon) on Mar 11, 2005 at 17:02 UTC
    this is what is passed to the browser
    first pass you passed cups for server rlinux1 /usr/bin/lpstat -h rlinux1 -o