[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19990201: data retrieval...



Maureen,

if you can list the file interactively, but can't access it in a script,
You should probably check any path, or directory changes in the script.
If you are running the script from cron, then the script is executed from
the home level directory- so you would either have to cd to the
appropriate directory or use full path names.

Another reason scripts fail occasionally is that they don't have your full
environment, and environmental variables aren't defined.

Try either using the complete path name, or echoing out what directory 
and filename the script is in and see if that matches what you expect.

Steve Chiswell
Unidata User Support


>From: Maureen Ballard <address@hidden>
>Organization: UK Ag Weather Center
>Keywords: 199902011939.MAA09529

>Steve,
>
>When I came in today (monday) I found out that we once again had
>problems receiving data over the weekend. Robb has already set us up
>with another upstream site (niu) to replace our other one (uwyo). Since
>we hadn't gotten a full model run all weekend, I went to David Knight
>site at albany (he had sent me an e-mail when we had model problems last
>week) to get the data. I downloaded it the same way I did before (to
>disk and then binary ftp'd to the proper computer). Transfer went fine,
>but whenever I tried to reference the file in a script I got the error,
>File does not exist.
>
>I can list the file, it has the proper permissions/ownership - any idea
>why I would get that error? More curiosity than anything else.
>
>Thanks!
>
>Maureen
>--
>========================================================================
>
>Maureen Moore Ballard                   address@hidden
>Staff Meteorologist                           ph:  606-257-3000ext244
>Ag. Weather Center                         fax: 606-257-5671
>243 Ag. Engineering Bldg
>Dept. of Biosystems and Ag. Engr.
>University of Kentucky
>Lexington, KY 40546-0276
>HOMEPAGE   http://wwwagwx.ca.uky.edu
>
>You don't stop laughing because you grow old;
>you grow old because you stop laughing.
>=========================================================================
>
>
>