From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4903 invoked by alias); 17 May 2011 16:12:03 -0000 Received: (qmail 4877 invoked by uid 22791); 17 May 2011 16:12:01 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,TW_YG X-Spam-Check-By: sourceware.org Received: from nm21.bullet.mail.sp2.yahoo.com (HELO nm21.bullet.mail.sp2.yahoo.com) (98.139.91.91) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 17 May 2011 16:11:46 +0000 Received: from [98.139.91.70] by nm21.bullet.mail.sp2.yahoo.com with NNFMP; 17 May 2011 16:11:45 -0000 Received: from [98.136.185.29] by tm10.bullet.mail.sp2.yahoo.com with NNFMP; 17 May 2011 16:11:45 -0000 Received: from [127.0.0.1] by smtp110.mail.gq1.yahoo.com with NNFMP; 17 May 2011 16:11:45 -0000 Received: from [10.0.0.2] (reply-to-list-only-lh@108.7.36.4 with plain) by smtp110.mail.gq1.yahoo.com with SMTP; 17 May 2011 09:11:45 -0700 PDT X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Message-ID: <4DD29E42.4080508@cygwin.com> Date: Tue, 17 May 2011 16:12:00 -0000 From: "Larry Hall (Cygwin)" Reply-To: cygwin@cygwin.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.10 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Compiled Program System Calls Failing Code 127 References: <042e01cc1404$d8d7ae60$8a870b20$@gmail.com> In-Reply-To: <042e01cc1404$d8d7ae60$8a870b20$@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00245.txt.bz2 On 5/16/2011 4:07 PM, Leon Vanderploeg wrote: > Greetings, > > 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. > > http://cygwin.com/ml/cygwin/2006-08/msg00347.html 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: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple