Command Line Download Manager

compared with
Current by Tony Johnson
on Nov 25, 2008 12:06.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

 h1. Using the command line download manager
  
 h2. Generate a key file
  
 You need to generate a key file to authenticate yourself to the server. To do this simply click on this link:
  
 [Generate Key File|http://glast-ground.slac.stanford.edu/DataCatalog/keyGen]
  
 You will need to login with your SLAC username/password if you have not already done so. Save the downloaded key file as ~/.downloadManager/glastKeyFile. Remember to set the permissions on the file/directory so it can *only* be read by the user who will run the command line download manager.
  
 h2. Download the [launcher jar file|^launcher.jar].
  
 Store it anywhere you like.
  
 h2. Make sure you have a suitable version of Java installed
  
 java -version
  
 You need version 1.5 or greater.
  
 h2. Run the download manager
  
 From the directory where you save launcher.jar issue the following command.
  
 {noformat}
 java -jar launcher.jar --folder=/Data/Flight/Level1/LPA --group=FT1 --destination data/FT1
 {noformat}
  
 The full list of arguments supported is:
  
 {noformat}
  -destination,--d <arg> Destination folder
  -folder,--f <arg> Folder to download
  -group,--g <arg> Group to download
  -help,--h Display usage information
  -keyFile,--k <arg> File containing download key
  -nDownloads,--n <arg> Number of simultaneous downloads
  -q,--quiet Turn off informational messages
  -runMax <arg> Maximum run number
  -runMin <arg> Minimum run number
  -x,--debug Turn on debug output
 {noformat}
  
 Notes:
  
 * We should add more options, to support MET ranges and full data catalog meta-data search
  * The format of the downloaded files will change shortly to include the data type of the file (FT1, MERIT etc)
 * The download manager checks if the files to be downloaded already exist. If so they will not be downloaded again. If a newer version exists it will replace the existing version (and the existing version will be renamed *-old-n)