Im trying to use unix commands via cygwin on a nt server. that part i solved and it works great. if i go in dos prompt and type grep or cut or cat it works. But i cant call those commands via perl on a cgi script on the web server which is on the same machien of course. Always give me the error message that the command is not found or is not a local command or whatever.
Im trying to call grep and cut. this is how i had it
$grepip = exec ("grep -o [0-9]*[0-9]*[0-9].[0-9]*[0-9]*[0-9].[0-9]*[0-9]*[0-9].[0-9]*[0-9]*[0-9] | grep -n 1 | cut -f2 -d:")
But it does work. I even tried with system. Cygwin is installed in c:\cygwin and i have c:\cygwin\bin in my system path. Also my web is in d drive.
Anyways I dunno why i can use all those cygwin commands in dos but perl says he cant find them. why would the be?