Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: passing vars to a sub

by RazorbladeBidet (Friar)
on Mar 11, 2005 at 16:01 UTC ( [id://438698]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://438698]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found