delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/15/21:59:07

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6B7C03858C39
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=systematicsw.ab.ca
X-Authority-Analysis: v=2.4 cv=Bbi7bph2 c=1 sm=1 tr=0 ts=6142a4d8
a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17
a=IkcTkHD0fZMA:10 a=94nOnFI1EgyDtX4ev68A:9 a=QEXdDO2ut3YA:10
To: cygwin AT cygwin DOT com
References: <CAC7Qdh0tn4L9BzvRV6xKXaB6EUMRjPWLsaoK=bVdphfJa6NKiQ AT mail DOT gmail DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Organization: Systematic Software
Subject: Re: Previously-functional gawk script now failing to execute - PLEASE
HELP!!!
Message-ID: <2ecc9f97-4324-2948-5e6b-1fffa72b2d27@SystematicSw.ab.ca>
Date: Wed, 15 Sep 2021 19:58:47 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <CAC7Qdh0tn4L9BzvRV6xKXaB6EUMRjPWLsaoK=bVdphfJa6NKiQ@mail.gmail.com>
X-CMAE-Envelope: MS4xfL2xgN3A8GyTYVAH2ZAki6Q5yRHJoxB+VVX1qolnFEa6kU7CX9fsO8oTYAGvsUBbVeWPZTOHSQ9mVjkMFMyl3lSSGs9GHw8tShZxadTt0V7QXrJXI1lm
o8KQ6ex+CAiqKgirJ1ZHg9VI1e/wVBhpo9f96lcEeo1VlE3wdJjZcLQYym6Bf9egp9lrEHFAVYqR4VqpalhboxRuUSruYt8GEtA=
X-Spam-Status: No, score=-1161.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 2021-09-15 15:11, Bryan VanSchouwen via Cygwin wrote:
> I just tried executing an old, previously-functional awk script using a
> version of gawk that I had downloaded last year, and a command of the
> following format (as recommended in a previous communication with the
> Cygwin mailing list):
> gawk -vRS="\r\n" -f data_collect_e_-_FF_4-state.awk
> but this time, the script failed to execute!!
> 
> Upon closer examination, the script appears to be failing after
> successfully reading the first line of data from the input data file, even
> though the input file has NOT been modified since it was last used.  (I
> should point out that while the files were copied over from my old
> computer, another awk script execution that I had attempted recently with
> older files worked fine!)

So the script is not failing to execute, it is successfully reading the 
first line: so how is it failing, and what has that to do with the input 
file being modified, and if the input file has not been modified since 
the script was last used, why are you rerunning it?

Package gawk has been updated once a year for the last 4 years, up until 
2020-04, and has not changed recently, so the problem may be with your 
data file, or the script, or your Cygwin installation, and only you can 
really answer that, as they have been "copied" from another computer: 
using what process? How was Cygwin setup on the new computer, and which 
version of gawk was installed to be used?

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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