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

I personally believe that it has already been clearly explained to you: namely "No Such file or directory" means that there's no such file or directory. Where perl can possibly look for it, that is. That you can use the same command from your shell simply means that your shell knows where to look: just give perl the same info. You can either pass through the shell anyway, which I do not recommend (why spawn another process?) or give the full path to the program, which may be sensible in any case: what if someone puts an identically named program in some directory which comes first in your path? (Ok, this is an extremely minor detail...)

--
If you can't understand the incipit, then please check the IPB Campaign.

Replies are listed 'Best First'.
Re^6: DNScmd in perl script
by ajd335 (Novice) on Jul 29, 2008 at 16:00 UTC
    Hi Blazar.. Yeah You are right.N that's what my q is.as we have "Exec" "Shell_exec" in PHP to run command from DOS and return results. The same , do we have something like that in perl also.So that I can run the command on DOS ( Which gives me correct answer) and than can store it. I will really appreciate.