This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiled Program System Calls Failing Code 127

On 5/16/2011 4:07 PM, Leon Vanderploeg wrote:

I have a compiled C program that is installed on several servers.  It makes
system calls to programs such as rsync, and has worked fine until now.  I
recently installed it on two Server 2008R2 boxes, identical hardware.  Both
are Cygwin 1.7.9.  C:\cygwin\bin is added to the Windows PATH variable on
both machines.  The program runs fine on one box, but on the other box, the
system calls return 127. says /bin/sh can’t be
found.  At the escalated command prompt, bash and sh start appropriate
shells (although the which command points to /usr/bin/xxx) on both machines.

Any idea what could be causing this behavior?

No, not really. But I'd say it would be worth a look to see how the two environments differ, including permissions. cygcheck output from the two machines might help you understand at least some of this. If not, you may have to do some debugging of the code on both machines to find the problem.

-- Larry


A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]