delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/09/20:28:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050909202651.040d4d08@pop.prospeed.net>
Date: Fri, 09 Sep 2005 20:28:14 -0400
To: "Pagano, Tom - Portland, OR" <tom DOT pagano AT por DOT usda DOT gov>,
<cygwin AT cygwin DOT com>
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: RE: cron script can awk wget file but not head/cat it
In-Reply-To: <3C46C4ED0F9B944690547357EB7F1C0F04A481@COFORTCOL2S304.agwe st.one.usda.gov>
References: <3C46C4ED0F9B944690547357EB7F1C0F04A481 AT COFORTCOL2S304 DOT agwest DOT one DOT usda DOT gov>
Mime-Version: 1.0

At 06:11 PM 9/9/2005, you wrote:

>Thank you for the very prompt response.
>
>If I assume that it's the System that's running the script via the cron,
>isn't System the owner of the file that results from wget? Or do wgetted
>files belong to someone else? And do Awk and Cat require different
>permission levels (presumably awk is more lax than cat because even
>though they were doing the same thing, cat couldn't see the file
>contents whereas awk could). Besides, from my ls in my previous mail, it
>appears to me that user-group-other all have read permissions to all the
>files so it shouldn't even matter?
>
>Do you have any recommendations on how I can change my script or some
>setting to fix the problem? I could change all my cat and head
>statements to awk statements, but that seems more like treating the
>symptom rather than the disease. 


I think it's worthwhile to consider Brian's comments before making any 
changes to your scripts...



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


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

- Raw text -


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