public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Cygwin GNU App driving Clearcase NT
@ 2002-09-05  6:53 Romaszkiewicz, Tom
  0 siblings, 0 replies; 8+ messages in thread
From: Romaszkiewicz, Tom @ 2002-09-05  6:53 UTC (permalink / raw)
  To: 'Peter A. Castro'; +Cc: 'cygwin@cygwin.com'

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@fruitbat.org]
> Sent:	Thursday, September 05, 2002 6:49 AM
> To:	Romaszkiewicz, Tom
> Cc:	'cygwin@cygwin.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@fruitbat.org> or <Peter.Castro@oracle.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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Cygwin GNU App driving Clearcase NT
@ 2002-09-06  5:31 Romaszkiewicz, Tom
  0 siblings, 0 replies; 8+ messages in thread
From: Romaszkiewicz, Tom @ 2002-09-06  5:31 UTC (permalink / raw)
  To: 'John Morrison'; +Cc: cygwin

I think I've been fortunate so far in that through mainly luck paths haven't
created a problem for me.
This is sure to sneak up and bite my posterior at some point tho :-)
Thanks for the tip.

Tom

> -----Original Message-----
> From:	John Morrison [SMTP:john.r.morrison@ntlworld.com]
> Sent:	Wednesday, September 04, 2002 7:41 PM
> To:	Romaszkiewicz, Tom; cygwin@cygwin.com
> Subject:	RE: Cygwin GNU App driving Clearcase NT
> 
> > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> > 
> > Hi all,
> > 
> > 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.
> > 
> > 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?
> 
> Does it work when <filename> has no path information?  If so, try
> using cygpath -w -p <filename>
> 
> J.


*******************************************************************************************************
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Cygwin GNU App driving Clearcase NT
  2002-09-05 13:04   ` Igor Pechtchanski
@ 2002-09-05 14:11     ` John Morrison
  0 siblings, 0 replies; 8+ messages in thread
From: John Morrison @ 2002-09-05 14:11 UTC (permalink / raw)
  To: cygwin; +Cc: Romaszkiewicz, Tom

> Ahem...  'cygpath -w -p <filename>'?  Just for the archives, before some
> poor slob starts asking "what is cygdrive, and why don't i have it
> installed"...

Sorry, typing without checking.  Must verify before a send :(

J.

--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Cygwin GNU App driving Clearcase NT
  2002-09-05 12:59 ` John Morrison
@ 2002-09-05 13:04   ` Igor Pechtchanski
  2002-09-05 14:11     ` John Morrison
  0 siblings, 1 reply; 8+ messages in thread
From: Igor Pechtchanski @ 2002-09-05 13:04 UTC (permalink / raw)
  To: John Morrison; +Cc: cygwin, Romaszkiewicz, Tom

On Wed, 4 Sep 2002, John Morrison wrote:

> > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> >
> > Hi all,
> >
> > 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.
> >
> > 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?
>
> Does it work when <filename> has no path information?  If so, try
> using cygdrive -w -p <filename>

Ahem...  'cygpath -w -p <filename>'?  Just for the archives, before some
poor slob starts asking "what is cygdrive, and why don't i have it
installed"...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

It took the computational power of three Commodore 64s to fly to the moon.
It takes a 486 to run Windows 95.  Something is wrong here. -- SC sig file


--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Cygwin GNU App driving Clearcase NT
  2002-09-04 10:37 Romaszkiewicz, Tom
  2002-09-04 12:53 ` Andrew DeFaria
  2002-09-04 22:50 ` Peter A. Castro
@ 2002-09-05 12:59 ` John Morrison
  2002-09-05 13:04   ` Igor Pechtchanski
  2 siblings, 1 reply; 8+ messages in thread
From: John Morrison @ 2002-09-05 12:59 UTC (permalink / raw)
  To: Romaszkiewicz, Tom, cygwin

> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> 
> Hi all,
> 
> 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.
> 
> 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?

Does it work when <filename> has no path information?  If so, try
using cygdrive -w -p <filename>

J.

--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Cygwin GNU App driving Clearcase NT
  2002-09-04 10:37 Romaszkiewicz, Tom
  2002-09-04 12:53 ` Andrew DeFaria
@ 2002-09-04 22:50 ` Peter A. Castro
  2002-09-05 12:59 ` John Morrison
  2 siblings, 0 replies; 8+ messages in thread
From: Peter A. Castro @ 2002-09-04 22:50 UTC (permalink / raw)
  To: Romaszkiewicz, Tom; +Cc: 'cygwin@cygwin.com'

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@fruitbat.org> or <Peter.Castro@oracle.com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood


--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Cygwin GNU App driving Clearcase NT
  2002-09-04 10:37 Romaszkiewicz, Tom
@ 2002-09-04 12:53 ` Andrew DeFaria
  2002-09-04 22:50 ` Peter A. Castro
  2002-09-05 12:59 ` John Morrison
  2 siblings, 0 replies; 8+ messages in thread
From: Andrew DeFaria @ 2002-09-04 12:53 UTC (permalink / raw)
  To: cygwin

Romaszkiewicz, Tom wrote:

> Hi all,
>
> 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.
>
> 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?

You can start by expanding on "this operation always seems to fail"! :-)




--
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Cygwin GNU App driving Clearcase NT
@ 2002-09-04 10:37 Romaszkiewicz, Tom
  2002-09-04 12:53 ` Andrew DeFaria
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Romaszkiewicz, Tom @ 2002-09-04 10:37 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hi all,

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.

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?

Tom








*******************************************************************************************************
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-09-06 12:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-05  6:53 Cygwin GNU App driving Clearcase NT Romaszkiewicz, Tom
  -- strict thread matches above, loose matches on Subject: below --
2002-09-06  5:31 Romaszkiewicz, Tom
2002-09-04 10:37 Romaszkiewicz, Tom
2002-09-04 12:53 ` Andrew DeFaria
2002-09-04 22:50 ` Peter A. Castro
2002-09-05 12:59 ` John Morrison
2002-09-05 13:04   ` Igor Pechtchanski
2002-09-05 14:11     ` John Morrison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).