Table of Contents


FTP Downloader

This script downloads the latest copy of the NMPDR cover pages to the development site. The cover pages are expected to be found in the ncsa subdirectory of ftp.figresearch.com, and the development site is located at $FIG_Config::nmpdr_base/next/html. The modification date of the files on the remote site will be compared to the dates for the files currently in the directory. If the modification date on the remote is newer, a new copy is downloaded over the top of the old one.

The currently-supported command-line options are as follows.

binary

Comma-delimited list of the extensions for the files to be transferred in binary. The default is png,gif,jpg,mp3,jar,zip,swf,pdf,tar, which covers most everything expected to occur on a web site.

timeZone

Time zone displacement in hours between the NMPDR server and the figresearch.com server. The default is 1, indicating that we have to add one hour to the NMPDR time stamps to make them match the figresearch.com time stamps.

force

Download the remote file even if the local file is newer.

user

Name suffix to be used for log files. If omitted, the PID is used.

trace

Numeric trace level. A higher trace level causes more messages to appear. The default trace level is 2. Tracing will be directly to the standard output as well as to a traceUser.log file in the FIG temporary directory, where User is the value of the user option above.

sql

If specified, turns on tracing of SQL activity.

background

Save the standard and error output to files. The files will be created in the FIG temporary directory and will be named errUser.log and outUser.log, respectively, where User is the value of the user option above.

h

Display this command's parameters and options.