delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/27/11:41:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Problem with system()
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
From: Glenn DOT Davis AT predictive DOT com
Message-ID: <OFADA18B96.60934FBB-ON85256929.00561A27@predictive.com>
Date: Thu, 27 Jul 2000 11:40:30 -0400
X-MIMETrack: Serialize by Router on Apollo/Predictive(Release 5.0.4 |June 8, 2000) at 07/27/2000
11:40:38 AM,
Serialize complete at 07/27/2000 11:40:38 AM
MIME-Version: 1.0

THAT DID IT!
Thanks!!!!  I tried to save space on my computer, and look where it got 
me.
I even saw in the man page for system() that it uses /bin/sh.  Thats why I 
downloaded "bash".  I stupidly assumed that since you guys were using bash 
in your cygwin.bat file, that that was the program to use (and not ash).
I'm sure there is a lesson in there somewhere.
thanks,
glenn.




Chris Faylor <cgf AT cygnus DOT com>
07/27/00 11:10 AM
Please respond to cygwin

 
        To:     Glenn DOT Davis AT predictive DOT com
        cc: 
        Subject:        [cgf: Re: Problem with system()]


Sorry.  Forgot to Cc you.

cgf

----- Forwarded message from cgf -----

To: cygwin AT sources DOT redhat DOT com
Subject: Re: Problem with system()
Date: Thu, 27 Jul 2000 11:09:46 -0400
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sources DOT redhat DOT com
In-Reply-To: <OFEB57585D DOT 87A9F813-ON85256929 DOT 0051CAE4 AT predictive DOT com>; 
from Glenn DOT Davis AT predictive DOT com on Thu, Jul 27, 2000 at 11:04:22AM -0400

On Thu, Jul 27, 2000 at 11:04:22AM -0400, Glenn DOT Davis AT predictive DOT com 
wrote:
>>On Thu, Jul 27, 2000 at 09:42:19AM -0400, Glenn DOT Davis AT predictive DOT com
>wrote:
>>>Chris,
>>>I guesss I should have given more info.
>>>I tried
>>>        system ("command /c dir")
>>>and yes, I am using Windows 95.
>>
>>I don't know what's wrong but I would check basic things like your PATH.
>>If you don't have a command.com in your path then system is obviously
>>not going to be able to run "command".
>
>I know I don't sound like I know what I am doing, but I did look at my
>Path.  I am able to run commands from inside bash. I even put the full
>path of the commands in the system call. I still get the same results.

It finally dawned on me that since you haven't installed the complete
cygwin package you probably don't have /bin/sh.  UNIX uses /bin/sh
to invoke programs for the system() command.  Ditto, cygwin.

That program is found in the 'ash' tar ball.

cgf

----- End forwarded message -----

--
cgf AT cygnus DOT com                        Cygnus Solutions, a Red Hat company
http://sourceware.cygnus.com/         http://www.redhat.com/



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019