delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/05/17:00:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <8489C4C090614142BA72740AFF56EA450A5FA3@UKSLMAIL>
From: "Romaszkiewicz, Tom" <Tom DOT Romaszkiewicz AT racalinst DOT co DOT uk>
To: "'Peter A. Castro'" <doctor AT fruitbat DOT org>
Cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: Cygwin GNU App driving Clearcase NT
Date: Thu, 5 Sep 2002 14:51:59 +0100
MIME-Version: 1.0

Hi Peter,

I managed to get to the bottom of the problem. PATCH calls CLEARTOOL via the
stdlib system() call.  
The return value from system() was 127 (indicating the Command language
intepreter failed to execute.)
I found a tip which said:-
Add c:\cygwin\bin to PATH.
Set MAKE_MODE = unix.
After rebuilding PATCH, everything worked great.

Thanks for your encouraging words.  I'm quite new to all of this!
I look forward to using cygwin more, it's very powerful.

Tom.
 

> -----Original Message-----
> From:	Peter A. Castro [SMTP:doctor AT fruitbat DOT org]
> Sent:	Thursday, September 05, 2002 6:49 AM
> To:	Romaszkiewicz, Tom
> Cc:	'cygwin AT cygwin DOT com'
> Subject:	Re: Cygwin GNU App driving Clearcase NT
> 
> On Wed, 4 Sep 2002, Romaszkiewicz, Tom wrote:
> 
> > Hi all,
> 
> Hi Tom,
> 
> > I have just begun to use cygwin on Windows NT4, with the aim of using
> GNU
> > Toolchain apps.
> > I'm having a problem with GNU PATCH (2.5.4) compiled under cygwin,
> > interacting with Clearcase NT (4.2)
> > 
> > PATCH correctly senses a file to be patched is under Clearcase control,
> and
> > generates the correct Cleartool checkout command line syntax accordingly
> > (cleartool co -unr -nc <filename> ), but this operation always seems to
> > fail.
> 
> You'll need to provide more detail about the failure.  What's the error
> message?  Is there an error message?  Can you get the exact command line
> that patch is generating and execute it manually?
> 
> > Assuming originally PATCH was at fault, I built for Win32, and the
> Cleartool
> > checkout command worked successfully.
> > 
> > My current thinking is my problem is about a UNIX app driving the DOS
> > Command line, and Cygwin needs to be configured somehow? Can someone
> suggest
> > anything I can try?
> 
> Not likely.  I use Cygwin and NT4 and ClearCase 4.2 at work all the time.
> No problems interacting with each other.  However, things to watch out
> for are path specifications.  If your patches uses "\" for the directory
> separator, and that's what's being passed in the command, then most
> likely the "\" is being treated as an escape character.  This is
> especially true if patch is executing the command from a sub-shell (in
> which case the *shell* is doing the interpreting, not cleartool).
> 
> Time like this require some debugging output at the place where the
> command is being executed.  You've got the source for patch, so go to it! 
> 
> > Tom
> 
> -- 
> Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
> 	"Cats are just autistic Dogs" -- Dr. Tony Attwood


*******************************************************************************************************
The information contained in this e-mail is confidential. It may also be legally privileged. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful.

If you have received this e-mail in error, please inform RACAL INSTRUMENTS LTD. immediately by phoning +44 (0)1628 604455 (ask for the I.T. dept) and delete it and all copies from your system.
*******************************************************************************************************


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019