Thread: perl on windows

  1. #1
    Registered User
    Join Date
    Feb 2002

    perl on windows

    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?

  2. #2
    Registered User
    Join Date
    Feb 2002
    this is the exact error message i get

    'grep' is not recognized as an internal or external command, operable program or batch file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone using Windows 7?
    By Sharke in forum General Discussions
    Replies: 60
    Last Post: 07-12-2009, 08:05 AM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  3. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM