This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: cron script can awk wget file but not head/cat it
- From: Larry Hall <lh-no-personal-replies-please at cygwin dot com>
- To: "Pagano, Tom - Portland, OR" <tom dot pagano at por dot usda dot gov>, <cygwin at cygwin dot com>
- Date: Fri, 09 Sep 2005 20:28:14 -0400
- Subject: RE: cron script can awk wget file but not head/cat it
- References: <3C46C4ED0F9B944690547357EB7F1C0F04A481@COFORTCOL2S304.agwest.one.usda.gov>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
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/