| delorie.com/archives/browse.cgi | search |
| 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 |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <17B78BDF120BD411B70100500422FC6309E437@IIS000> |
| From: | Bernard Dautrevaux <Dautrevaux AT microprocess DOT com> |
| To: | "'Guntupalli, Santhi'" <santhi DOT guntupalli AT digital DOT com>, |
| "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> | |
| Subject: | RE: problem - system api on winnt |
| Date: | Thu, 17 Jan 2002 14:33:48 +0100 |
| MIME-Version: | 1.0 |
| X-Mailer: | Internet Mail Service (5.5.2653.19) |
> -----Original Message-----
> From: Guntupalli, Santhi [mailto:santhi DOT guntupalli AT digital DOT com]
> Sent: Thursday, January 17, 2002 1:42 PM
> To: 'cygwin AT cygwin DOT com'
> Subject: problem - system api on winnt
>
>
>
> > Hi,
> > I installed Cygwin Dll 1.3.6. I am working on Win NT.
> > I built the sources in cygwin sucessfully.
> > I have to use this application executable on some other win nt
> > system which does not have cygwin.
> >
> > When i run my application from winnt promt it is returning for
> > system api return code 127.
> > I copied only cygwin1.dll to that system.
> > This is sample program.
> > Implementation of copy command.
> >
> > sample.cpp:
> >
> > int main()
> > {
> >
> > int exit_code=::system("cp test.cpp test1.cpp");
> > cout<<exit_code;
> > }
> >
> > I built the sample.cpp in cygwin. i got the executable. when run
> > executable from cygwin prompt system api is executing the command
> > properly and returns exit_code as 0.
> >
> > When i copy the same executable to some other machine
> which does not
> > have cygwin and i run it from winnt cmd promt
> >
> > system api is returning error code as 127. It is not executing
> > system api.
> > cygwin1.dll is in path.
> > Not only cp command, it is returning same error code
> for all other
> > commands.
> >
> > What could be the problem. i need to copy any other
> cygwin dlls to
> > my application?
"cp" is a cygwin command, so no surprise if you can't execute it if cygwin
is not installed. You'd rather try to execute a WIN32 command (like copy).
HTH
Bernard
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel: +33 (0) 1 47 68 80 80
Fax: +33 (0) 1 47 88 97 85
e-mail: dautrevaux AT microprocess DOT com
b DOT dautrevaux AT usa DOT net
--------------------------------------------
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |