-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I try to keep a mirror of NASA atteph ancilliary data for modis processing. I know that means little, but I have a cron script that runs 2 times a day. Sometimes it works, and others, not so much. The sh script is listed at the end of this email below. As is the contents of the remote ftp server's root and portions fo the log.
I don't need all the data on the remote server, only some thus I use - --cut-dirs. To make matters stranger, the software (also from NASA) that uses these files, looks for them in a single place on the client machine where the software runs, but needs data from 2 different directories on the remote ftp server. If the data is not on the client machine, the software kindly ftp's the files to the local directory. However, I don't allow write access to that directory as many people use the software and when it is d/l'ed it has the wrong perms for others to use it, thus I mirror the data I need from the ftp site locally. In the script below, there are 2 wget commands, but they are to slightly different directories (MODISA & MODIST). It appears to me that the problem occurs if there is a ftp server error, and wget starts a retry. wget goes to the server root, gets the .listing from there for some reason (as opposed to the directory it should go to on the server), and then goes to the dir it needs to mirror and can't find the files (that are listed in the root dir) and creates dirs, and then I get "No such file" errors and recursive directories created. Any advice would be appreciated. Brock Murch Here is an example of the "bad" type of dir structure I end up with (there should be no EO1 and below): [EMAIL PROTECTED] atteph]# find . -type d -name "*" | grep EO1 ./2002/110/EO1 ./2002/110/EO1/CZCS ./2002/110/EO1/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS ./2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS/CZCS Or: [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/ CZCS README [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/CZCS/ CZCS README [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/ CZCS README [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/ CZCS README [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/ COMMON [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/ CZCS README [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/ CZCS README [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/ CZCS README [EMAIL PROTECTED] atteph]# ls /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/ CZCS README [EMAIL PROTECTED] atteph]# ll /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/CZCS/CZCS/CZCS/ And [EMAIL PROTECTED] atteph]# ll /home1/software/modis/atteph/2002/110/EO1/README - -rw-r--r-- 1 root root 9499 Aug 20 10:12 /home1/software/modis/atteph/2002/110/EO1/README [EMAIL PROTECTED] atteph]# ll /home1/software/modis/atteph/2002/110/EO1/CZCS/README - -rw-r--r-- 1 root root 9499 Aug 20 10:12 /home1/software/modis/atteph/2002/110/EO1/CZCS/README [EMAIL PROTECTED] atteph]# ll /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/README - -rw-r--r-- 1 root root 9499 Aug 20 10:12 /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/README [EMAIL PROTECTED] atteph]# ll /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/README - -rw-r--r-- 1 root root 9499 Aug 20 10:12 /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/README [EMAIL PROTECTED] atteph]# ll /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/README ls: /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/README: No such file or directory [EMAIL PROTECTED] atteph]# ll /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/README - -rw-r--r-- 1 root root 9499 Aug 20 10:12 /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/README All the README files are all the same, and the same as the one is the ftp server root dir: [EMAIL PROTECTED] atteph]# diff /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/README /home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/CZCS/CZCS/COMMON/README [EMAIL PROTECTED] atteph]# This is a pain to clean up, and I am left with a shell script running as well as a wget. Here is the ftp servers root dir (it is an anonymous server): [EMAIL PROTECTED] atteph]# ftp oceans.gsfc.nasa.gov Connected to oceans.sci.gsfc.nasa.gov. 220- U.S. Government Public Information Exchange Resource --------------> (This server accepts PASSIVE ftp ONLY) <---------------------- You have accessed a U.S. Government Resource. Any attempt to modify or exploit this resource or associated information other than for instructed use is strictly prohibited and may be punishable under the Computer Fraud and Abuse Act of 1986. The government may monitor and audit the usage of this resource. 220 192.168.2.50 FTP server ready 500 AUTH not understood 500 AUTH not understood KERBEROS_V4 rejected as an authentication type Name (oceans.gsfc.nasa.gov:root): anonymous 331 Anonymous login ok, send your complete email address as your password. Password: 230 Anonymous access granted, restrictions apply. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (169,154,128,45,232,6) 150 Opening ASCII mode data connection for file list dr-x------ 2 ftp ftp 4096 Apr 24 2007 COMMON dr-x------ 6 ftp ftp 4096 Aug 27 07:51 CZCS dr-x------ 21 ftp ftp 4096 Mar 2 2005 EO1 dr-x------ 2110 ftp ftp 53248 Oct 6 11:56 LANDSAT dr-x------ 26 ftp ftp 4096 Jan 1 2008 METOZ dr-x------ 18 ftp ftp 4096 Feb 27 2008 MODISA dr-x------ 16 ftp ftp 4096 May 6 14:17 MODIST dr-x------ 7 ftp ftp 4096 Mar 24 2006 Merged - -r-------- 1 ftp ftp 6995420 Sep 17 10:38 NASA_REPSRV_CRASH.tar.gz dr-x------ 7 ftp ftp 4096 May 14 10:08 OCTS dr-x------ 30 ftp ftp 4096 Oct 20 23:00 OISST - -r-------- 1 ftp ftp 9499 Aug 20 10:12 README dr-x------ 12 ftp ftp 4096 Sep 3 09:53 SeaWiFS dr-x------ 2 ftp ftp 4096 Jul 22 08:00 iop_workshop dr-x------ 7 ftp ftp 4096 Mar 20 2006 mnt dr-x------ 4 ftp ftp 2789376 Oct 24 18:13 neo dr-x------ 6 ftp ftp 4096 Jul 1 13:53 nrl_workshop dr-x------ 2 ftp ftp 4096 Jan 30 2007 software dr-x------ 588 ftp ftp 8192 Oct 22 10:52 subscriptions dr-x------ 4 ftp ftp 4096 Apr 27 2005 usr 226 Transfer complete. ftp> Here is a sample section of the log file where the error occurs: __START_SAMPLE_LOG_SECTION__ [EMAIL PROTECTED] atteph]# tail -740 mirror_t.log | more Remote file no newer than local file `/home1/software/modis/atteph/2002/109/AM1EPHN0.A2002109.1600.001' -- not retrieving. Remote file no newer than local file `/home1/software/modis/atteph/2002/109/AM1EPHN0.A2002109.1800.001' -- not retrieving. Remote file no newer than local file `/home1/software/modis/atteph/2002/109/AM1EPHN0.A2002109.2000.001' -- not retrieving. Remote file no newer than local file `/home1/software/modis/atteph/2002/109/AM1EPHN0.A2002109.2200.001' -- not retrieving. - --14:38:51-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/ => `/home1/software/modis/atteph/2002/110/.listing' ==> CWD /MODIST/ATTEPH/2002/110 ... done. ==> PASV ... Error in server response, closing control connection. Retrying. - --14:53:53-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/ (try: 2) => `/home1/software/modis/atteph/2002/110/.listing' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD not required. ==> PASV ... done. ==> LIST ... done. 0K . 1.74 MB/s 14:53:53 (1.74 MB/s) - `/home1/software/modis/atteph/2002/110/.listing' saved [1284] Removed `/home1/software/modis/atteph/2002/110/.listing'. - --14:53:54-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/NASA_REPSRV_CRASH.tar.gz => `/home1/software/modis/atteph/2002/110/NASA_REPSRV_CRASH.tar.gz' ==> CWD /MODIST/ATTEPH/2002/110 ... done. ==> PASV ... done. ==> RETR NASA_REPSRV_CRASH.tar.gz ... No such file `NASA_REPSRV_CRASH.tar.gz'. - --14:53:55-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/README => `/home1/software/modis/atteph/2002/110/README' ==> CWD /MODIST/ATTEPH/2002/110 ... done. ==> PASV ... done. ==> RETR README ... No such file `README'. - --14:53:56-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/COMMON/ => `/home1/software/modis/atteph/2002/110/COMMON/.listing' ==> CWD /MODIST/ATTEPH/2002/110/COMMON ... No such directory `MODIST/ATTEPH/2002/110/COMMON'. unlink: No such file or directory - --14:53:57-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/CZCS/ => `/home1/software/modis/atteph/2002/110/CZCS/.listing' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /MODIST/ATTEPH/2002/110/CZCS ... No such directory `MODIST/ATTEPH/2002/110/CZCS'. unlink: No such file or directory - --14:53:59-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/ => `/home1/software/modis/atteph/2002/110/EO1/.listing' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Error in server response, closing control connection. Retrying. - --15:09:00-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/ (try: 2) => `/home1/software/modis/atteph/2002/110/EO1/.listing' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD not required. ==> PASV ... done. ==> LIST ... done. 0K . 904.04 KB/s 15:09:00 (904.04 KB/s) - `/home1/software/modis/atteph/2002/110/EO1/.listing' saved [1284] Removed `/home1/software/modis/atteph/2002/110/EO1/.listing'. - --15:09:02-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/NASA_REPSRV_CRASH.tar.gz => `/home1/software/modis/atteph/2002/110/EO1/NASA_REPSRV_CRASH.tar.gz' ==> CWD /MODIST/ATTEPH/2002/110/EO1 ... No such directory `MODIST/ATTEPH/2002/110/EO1'. - --15:09:03-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/README => `/home1/software/modis/atteph/2002/110/EO1/README' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD not required. ==> PASV ... done. ==> RETR README ... done. Length: 9,499 (9.3K) 0K ......... 100% 81.54 KB/s 15:09:03 (81.54 KB/s) - `/home1/software/modis/atteph/2002/110/EO1/README' saved [9499] - --15:09:04-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/COMMON/ => `/home1/software/modis/atteph/2002/110/EO1/COMMON/.listing' ==> CWD /MODIST/ATTEPH/2002/110/EO1/COMMON ... No such directory `MODIST/ATTEPH/2002/110/EO1/COMMON'. unlink: No such file or directory - --15:09:05-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/CZCS/ => `/home1/software/modis/atteph/2002/110/EO1/CZCS/.listing' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Error in server response, closing control connection. Retrying. - --15:24:06-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/CZCS/ (try: 2) => `/home1/software/modis/atteph/2002/110/EO1/CZCS/.listing' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD not required. ==> PASV ... done. ==> LIST ... done. 0K . 712.45 KB/s 15:24:07 (712.45 KB/s) - `/home1/software/modis/atteph/2002/110/EO1/CZCS/.listing' saved [1284] Removed `/home1/software/modis/atteph/2002/110/EO1/CZCS/.listing'. - --15:24:08-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/CZCS/NASA_REPSRV_CRASH.tar.gz => `/home1/software/modis/atteph/2002/110/EO1/CZCS/NASA_REPSRV_CRASH.tar.gz' ==> CWD /MODIST/ATTEPH/2002/110/EO1/CZCS ... No such directory `MODIST/ATTEPH/2002/110/EO1/CZCS'. - --15:24:09-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/CZCS/README => `/home1/software/modis/atteph/2002/110/EO1/CZCS/README' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD not required. ==> PASV ... done. ==> RETR README ... done. Length: 9,499 (9.3K) 0K ......... 100% 251.55 KB/s 15:24:09 (251.55 KB/s) - `/home1/software/modis/atteph/2002/110/EO1/CZCS/README' saved [9499] - --15:24:10-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/CZCS/COMMON/ => `/home1/software/modis/atteph/2002/110/EO1/CZCS/COMMON/.listing' ==> CWD /MODIST/ATTEPH/2002/110/EO1/CZCS/COMMON ... No such directory `MODIST/ATTEPH/2002/110/EO1/CZCS/COMMON'. unlink: No such file or directory - --15:24:11-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/CZCS/CZCS/ => `/home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/.listing' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Error in server response, closing control connection. Retrying. - --15:39:13-- ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/2002/110/EO1/CZCS/CZCS/ (try: 2) => `/home1/software/modis/atteph/2002/110/EO1/CZCS/CZCS/.listing' Connecting to oceans.gsfc.nasa.gov|169.154.128.45|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD not required. ==> PASV ... done. ==> LIST ... done. 0K . 678.15 KB/s __END_SAMPLE_LOG_SECTION__ Here is the actual contents of the remote ftp server in the appropriate directory where the error occurred (notice that EO1 nor CZCS and the others are not in this directory but is in the root dir): ftp> pwd 257 "/MODIST/ATTEPH/2002/110" is current directory. ftp> ls 227 Entering Passive Mode (169,154,128,45,217,58) 150 Opening ASCII mode data connection for file list - -r-------- 1 ftp ftp 452032 Apr 27 2007 AM1ATTN0.A2002110.0000.001 - -r-------- 1 ftp ftp 452032 Apr 27 2007 AM1ATTN0.A2002110.0200.001 - -r-------- 1 ftp ftp 452096 Apr 27 2007 AM1ATTN0.A2002110.0400.001 - -r-------- 1 ftp ftp 452032 Apr 27 2007 AM1ATTN0.A2002110.0600.001 - -r-------- 1 ftp ftp 452032 Apr 27 2007 AM1ATTN0.A2002110.0800.001 - -r-------- 1 ftp ftp 452032 Apr 27 2007 AM1ATTN0.A2002110.1000.001 - -r-------- 1 ftp ftp 452096 Apr 27 2007 AM1ATTN0.A2002110.1200.001 - -r-------- 1 ftp ftp 451520 Apr 27 2007 AM1ATTN0.A2002110.1400.001 - -r-------- 1 ftp ftp 452032 Apr 27 2007 AM1ATTN0.A2002110.1600.001 - -r-------- 1 ftp ftp 452032 Apr 27 2007 AM1ATTN0.A2002110.1800.001 - -r-------- 1 ftp ftp 452096 Apr 27 2007 AM1ATTN0.A2002110.2000.001 - -r-------- 1 ftp ftp 452032 Apr 27 2007 AM1ATTN0.A2002110.2200.001 - -r-------- 1 ftp ftp 901120 Jan 10 2006 AM1ATTNF.A2002110.0200.001 - -r-------- 1 ftp ftp 901120 Jan 11 2006 AM1ATTNF.A2002110.0600.001 - -r-------- 1 ftp ftp 901120 Jan 11 2006 AM1ATTNF.A2002110.0800.001 - -r-------- 1 ftp ftp 900992 Jan 11 2006 AM1ATTNF.A2002110.1000.001 - -r-------- 1 ftp ftp 901184 Jan 10 2006 AM1ATTNF.A2002110.1200.001 - -r-------- 1 ftp ftp 901120 Jan 11 2006 AM1ATTNF.A2002110.1400.001 - -r-------- 1 ftp ftp 901120 Jan 11 2006 AM1ATTNF.A2002110.2200.001 - -r-------- 1 ftp ftp 452096 Jan 15 2006 AM1EPHN0.A2002110.0000.001 - -r-------- 1 ftp ftp 452096 May 30 2007 AM1EPHN0.A2002110.0200.001 - -r-------- 1 ftp ftp 452192 Jan 15 2006 AM1EPHN0.A2002110.0400.001 - -r-------- 1 ftp ftp 452096 May 30 2007 AM1EPHN0.A2002110.0600.001 - -r-------- 1 ftp ftp 452096 May 30 2007 AM1EPHN0.A2002110.0800.001 - -r-------- 1 ftp ftp 452096 Jan 15 2006 AM1EPHN0.A2002110.1000.001 - -r-------- 1 ftp ftp 452160 Jan 15 2006 AM1EPHN0.A2002110.1200.001 - -r-------- 1 ftp ftp 451616 Jan 15 2006 AM1EPHN0.A2002110.1400.001 - -r-------- 1 ftp ftp 452096 May 30 2007 AM1EPHN0.A2002110.1600.001 - -r-------- 1 ftp ftp 452096 May 30 2007 AM1EPHN0.A2002110.1800.001 - -r-------- 1 ftp ftp 452160 Jan 15 2006 AM1EPHN0.A2002110.2000.001 - -r-------- 1 ftp ftp 452128 May 30 2007 AM1EPHN0.A2002110.2200.001 226 Transfer complete. ftp> And this is what I have in the local machine (notice the extra EO1): [EMAIL PROTECTED] atteph]# ll 2002/110/ total 16820 - -rw-r--r-- 1 root root 452032 Apr 27 2007 AM1ATTN0.A2002110.0000.001 - -rw-r--r-- 1 root root 452032 Apr 27 2007 AM1ATTN0.A2002110.0200.001 - -rw-r--r-- 1 root root 452096 Apr 27 2007 AM1ATTN0.A2002110.0400.001 - -rw-r--r-- 1 root root 452032 Apr 27 2007 AM1ATTN0.A2002110.0600.001 - -rw-r--r-- 1 root root 452032 Apr 27 2007 AM1ATTN0.A2002110.0800.001 - -rw-r--r-- 1 root root 452032 Apr 27 2007 AM1ATTN0.A2002110.1000.001 - -rw-r--r-- 1 root root 452096 Apr 27 2007 AM1ATTN0.A2002110.1200.001 - -rw-r--r-- 1 root root 451520 Apr 27 2007 AM1ATTN0.A2002110.1400.001 - -rw-r--r-- 1 root root 452032 Apr 27 2007 AM1ATTN0.A2002110.1600.001 - -rw-r--r-- 1 root root 452032 Apr 27 2007 AM1ATTN0.A2002110.1800.001 - -rw-r--r-- 1 root root 452096 Apr 27 2007 AM1ATTN0.A2002110.2000.001 - -rw-r--r-- 1 root root 452032 Apr 27 2007 AM1ATTN0.A2002110.2200.001 - -rw-r--r-- 1 root root 901120 Jan 10 2006 AM1ATTNF.A2002110.0200.001 - -rw-r--r-- 1 root root 901120 Jan 11 2006 AM1ATTNF.A2002110.0600.001 - -rw-r--r-- 1 root root 901120 Jan 11 2006 AM1ATTNF.A2002110.0800.001 - -rw-r--r-- 1 root root 900992 Jan 11 2006 AM1ATTNF.A2002110.1000.001 - -rw-r--r-- 1 root root 901184 Jan 10 2006 AM1ATTNF.A2002110.1200.001 - -rw-r--r-- 1 root root 901120 Jan 11 2006 AM1ATTNF.A2002110.1400.001 - -rw-r--r-- 1 root root 901120 Jan 11 2006 AM1ATTNF.A2002110.2200.001 - -rw-r--r-- 1 root root 452096 Jan 15 2006 AM1EPHN0.A2002110.0000.001 - -rw-r--r-- 1 root root 452096 May 30 2007 AM1EPHN0.A2002110.0200.001 - -rw-r--r-- 1 root root 452192 Jan 15 2006 AM1EPHN0.A2002110.0400.001 - -rw-r--r-- 1 root root 452096 May 30 2007 AM1EPHN0.A2002110.0600.001 - -rw-r--r-- 1 root root 452096 May 30 2007 AM1EPHN0.A2002110.0800.001 - -rw-r--r-- 1 root root 452096 Jan 15 2006 AM1EPHN0.A2002110.1000.001 - -rw-r--r-- 1 root root 452160 Jan 15 2006 AM1EPHN0.A2002110.1200.001 - -rw-r--r-- 1 root root 451616 Jan 15 2006 AM1EPHN0.A2002110.1400.001 - -rw-r--r-- 1 root root 452096 May 30 2007 AM1EPHN0.A2002110.1600.001 - -rw-r--r-- 1 root root 452096 May 30 2007 AM1EPHN0.A2002110.1800.001 - -rw-r--r-- 1 root root 452160 Jan 15 2006 AM1EPHN0.A2002110.2000.001 - -rw-r--r-- 1 root root 452128 May 30 2007 AM1EPHN0.A2002110.2200.001 drwxr-xr-x 3 root root 30 Oct 24 15:24 EO1 [EMAIL PROTECTED] atteph]# [EMAIL PROTECTED] atteph]# cat ../modis_atteph.sh #!/bin/sh # wget command for Oceans Modis Files # This script is used to mirror the modis ancilliary file used # specifically in the geolocate routines. # The wget command finds and gets only new files. The find command # makes sure that the files are readable by everyone. # The resultant files are used by seadas on many # of our platforms. They are not platform specific. # # Brock Murch # cd /home1/software/modis/atteph/ umask 022 wget --tries=10 --mirror --wait=1\ -nH --cut-dirs=2 ftp://oceans.gsfc.nasa.gov/MODISA/ATTEPH/ \ -o /home1/software/modis/atteph/mirror_a.log \ --directory-prefix=/home1/software/modis/atteph wget --tries=10 --mirror --wait=1\ -nH --cut-dirs=2 ftp://oceans.gsfc.nasa.gov/MODIST/ATTEPH/ \ -o /home1/software/modis/atteph/mirror_t.log \ --directory-prefix=/home1/software/modis/atteph find . -type f -name "*" -exec chmod 644 {} \; TODAY=`date` echo Completed the Oceans Modis Files atteph wget $TODAY! exit 0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFJAmnKMAkzD2qY/pURAs6GAJwLAkvJogeBryvsUUbTSiYIeS0KMACghf4N qVmr9cV83aDQu5v8faWSDY4= =Lo04 -----END PGP SIGNATURE-----