Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: hiding perl-wrapped command output

by rockneybot (Novice)
on Feb 02, 2005 at 03:03 UTC ( [id://427121]=note: print w/replies, xml ) Need Help??


in reply to hiding perl-wrapped command output

I'll try both of these methods. Would something like this also be useful?:
open CMD, "/sbin/fdisk|", '<', "-uM -q -L -O disksave --no-reread $dev +ice <<EOF\n0,\nEOF" or die "dude, what are you trying to do?";
Perhaps not, but I'll mess around with it. Also, what does the '*' indicate in open local(*STDOUT)?

Replies are listed 'Best First'.
Re^2: hiding perl-wrapped command output
by hsinclai (Deacon) on Feb 02, 2005 at 03:38 UTC
    Include  $! in your die statement if you need to learn the error..

    what does the '*' indicate in
    typeglob on handle ... Search for "local on a glob" in this page which explains it..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found