Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Error while running PERL in windows

by NetWallah (Canon)
on Apr 12, 2016 at 05:08 UTC ( [id://1160188]=note: print w/replies, xml ) Need Help??


in reply to Error while running PERL in windows

It appears that you are trying to run the command 'bpimagelist -A -media -hoursago', and parse the output.

You need to first "quote" the string, and then understand how perl handles the "\" (backslash) character, which has a special meaning inside a double-quoted string.

It is very difficult to determine what you are attempting, because you have not used <code> tags., but here is a guess at at one way to achieve what your first command is trying:

my @MEDIA; chdir 'C:\Program Files\Veritas\Netbackup\bin\admincmd\'; for ( qx{bpimagelist -A -media -hoursago 24} ){ s/\|/ /; my ($Image) = split; }

        This is not an optical illusion, it just looks like one.

Log In?
Username:
Password:

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

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

    No recent polls found