Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-Id: <4.3.1.2.20010115102632.0233eb30@pop.ma.ultranet.com>
X-Sender: lhall@pop.ma.ultranet.com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Mon, 15 Jan 2001 10:27:39 -0500
To: J H Buffington <jbuff@pacific.net>,
        "cygwin@cygwin.com" <cygwin@cygwin.com>
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
Subject: RE: gawk system() problem?
In-Reply-To: <4.3.2.7.2.20010114185156.0289aee0@mail.pacific.net>
References: <1DAF66E890E7D411828000D0B7912222ED3C@MSNLMX01>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

At 09:55 PM 1/14/2001, J H Buffington wrote:
>At 03:48 PM 1/15/01 +1300, Hoyt, Ben wrote:
>
>> > This  works for me
>> > BEGIN {
>> >   print system("command.com /c dir")
>> >   }
>> >
>> > but I'm sure that command.com is in my path.
>> > I suppose if you're on NT, it might be cmd.exe.
>> >
>>         Interesting. It doesn't for me. :-( I'm running Win95 and
>>command.com is definitely in my path. The above awk program simply displays
>>a "0" and nothing else. I guess by "it works for me" you mean displaying the
>>directory? Hmmm.. oh well. Thanks again.
>
>
>Yes, I see the directory followed by 0.
>
>See what happens when you type "which command.com"
>at the bash prompt.
>
>Try substituting that output for "command.com" in the system call.
>
>BTW, I'm stuck in the "stone age" at Cygwin 1.0 (CD version).
>Later versions may work differently.



In this area, the "stone age" and the current release coincide.  There is 
no difference in functionality.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

