in reply to DNScmd in perl script

In addition to what's already been said, in case $? is -1, it means dnscmd couldn't be started (e.g. not found along PATH).

Replies are listed 'Best First'.
Re^2: DNScmd in perl script
by ajd335 (Novice) on Jul 28, 2008 at 21:27 UTC
    Hi Almut, Yes , But if I try the
    C:\ > dnscmd servername /EnumZones
    is giving me the correct result on Dos prompt.

      Presumably you have different environments. Try specifying the full path to the program. Also, in case $? is -1 (and only then), print $! to see the system error message.

        Hi Almut, Yes , giving $! shows that No Such file or directory..What is causing that.....