| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Date: | Thu, 10 Aug 2006 09:24:13 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: system() call returns 127 in windows xp |
| Message-ID: | <20060810072413.GC20467@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <20060809213604 DOT 52799 DOT qmail AT web53506 DOT mail DOT yahoo DOT com> <44DA60B9 DOT 8070109 AT cygwin DOT com> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <44DA60B9.8070109@cygwin.com> |
| User-Agent: | Mutt/1.4.2i |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
On Aug 9 18:24, Larry Hall (Cygwin) wrote:
> Jeff Lu wrote:
> >I ran into a brick wall and could not find anything on
> >the web and on the post to resolve the problem I'm
> >having, which is a strange one.
> >
> >I have a C program that call system("ls -la >
> >dir.txt") that works fine within bash cygwin. It also
> >has been working on the computers running windows xp
> >without cygwin installed (only required dlls were
> >copied to it).
> >
> >For some reason the program is giving me error 127
> >when calling system() on the new machines running
> >windows xp without cygwin installed. I have tried
> >everything I could think of but nothing seems to work.
> > I have mouted the drive in the registry as follow
> >
> >mounts v2
> >cygdrive flags REG_DWORD 0x00000022(34)
> >cygdrive prefix REG_SZ /cygdrive
> >
> > /c
> > flags REG_DWORD 0x0000000a(10)
> > native REG_SZ c:
>
>
> That's not enough for Cygwin to work. You should add mount
> points for '/usr/bin', '/usr/lib', and '/'. Also check if
> the paths to 'cygwin1.dll' and 'ls.exe' are set. I'd think
> some form of both of these would be necessary to make this
> stuff work for you on any system.
Exit status 127 means that system didn't find /bin/sh. See
http://www.opengroup.org/onlinepubs/009695399/functions/system.html
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |