Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: DNScmd in perl script

by ajd335 (Novice)
on Jul 28, 2008 at 21:15 UTC ( [id://700653]=note: print w/replies, xml ) Need Help??


in reply to Re: DNScmd in perl script
in thread DNScmd in perl script

Hi Shmen , I forget to copy the closing bracket for the If statment the code is
$domain = "abc.com"; @zones = `dnscmd $domain /EnumZones`; if ($?) { print "Error "; } else "zones done";

Replies are listed 'Best First'.
Re^3: DNScmd in perl script
by shmem (Chancellor) on Jul 28, 2008 at 21:18 UTC
    if ($?) { print "Error "; } else "zones done";

    You are still missing curlies.

Log In?
Username:
Password:

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

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

    No recent polls found