X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: cygwin commands (cat,grep) not working in my windows 2008 machine
Date: Thu, 2 Apr 2009 11:32:35 +0100
Message-ID: <5E25AF06EFB9EA4A87C19BC98F5C875302F66374@core-email.int.ascribe.com>
In-Reply-To: <22842028.post@talk.nabble.com>
References: <22842028.post@talk.nabble.com>
From: "Phil Betts" <Phil.Betts@ascribe.com>
To: <cygwin@cygwin.com>
Reply-To: <cygwin@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

sudhap85 wrote:
>    I am using windows 2008 machine. I have installed latest cygwin.
> Here I am facing problem with the "cat" "grep" commands. In command=20
> line its working fine. but In my scripts it's giving error.

So what's the error?  Without this as a clue, we can only guess.

How are you running your scripts? (e.g. from a bash shell, a cmd
shell, or from a shortcut)

My WAG is that $PATH in the script is different from $PATH on the
command line.

> Am using PERL script for my testing. These commands are not working=20
> in the following scenario,
>  1. cat file1 > file2
>  2. grep 'compileCFFilters' MHSlog >> resultfile
> I have also installed the Activeperl in my system.
> Also, I am running the script with PERL 5.8.0 version.

Please read and follow the instructions in this link:
> Problem reports:       http://cygwin.com/problems.html

Pay particular attention to the instruction to run "cygcheck -svr",
*attaching* the output to your reply (i.e. don't paste it in).


Phil

This email has been scanned by Ascribe Ltd using Microsoft Antigen for Exch=
ange.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

