FTP space
The FTP space is at: ftp://ftp.slac.stanford.edu/users/cottrell/. The equivalent local file space at SLAC is /afs/slac/public/users/slac
Downloading recent data from the FTP:
...
- Download the file from the FTP;, i.e. copy it from ftp://ftp.slac.stanford.edu/users/cottrell/download.pl
- Copy download.pl to the location you want to download the files (e.g. /home/Documents/PingER)
- Through your commnad command line interface type: perl [path to download.pl]/download.pl -d [number of days] (make sure to have perl installed)
- -d specifies how many days to go back in time. For example -d 3 will download files related to the previous three days.
- -d specifies how many days to go back in time. For example -d 3 will download files related to the previous three days.
...
The script responsible to update the public FTP is in the pinger machine on the following location:
/afs/slac/package/pinger/ftp-update.pl
...
$ /opt/TWWfsw/bin/perl /afs/slac/package/pinger/ftp-update.pl
You can SSH to the pinger machine with the following command:
ssh pinger@pinger.slac.stanford.edu
Output from running the command ftp_update.pl:
It represents how many files were missing during the update process.
Cron Job to run ftp-upate.pl automatically each day
The script runs every morning at 4AM. To modify the cron job you should edit the trscrontab:
...
$ /afs/slac/public/users/cottrell/pinger_log_files AKA ftp://ftp.slac.stanford.edu/users/cottrell/pinger_log_files/
Each .txt file contains the names of the files missing in the FTP.
...
$ /afs/slac/public/users/cottrell AKA ftp://ftp.slac.stanford.edu/users/cottrell/
pinger_temp_files folder:
$ /afs/slac/public/users/cottrell/pinger_temp_files AKA ftp://ftp.slac.stanford.edu/users/cottrell/pinger_temp_files/
pingerreports folder:
$ /nfs/slac/g/net/pinger/pingerreports/hep
...