...
Code Block |
---|
$ psql -U GLAST_ISOC -d GLAST_ISOC -c "insert into fcopy_submithost values( (select max(submithost_pk)+1 from fcopy_submithost), 'lat-hobbit4.slac.stanford.edu');" GLAST_ISOC |
Similarly, the Unix usernames of any accounts from which outgoing files will be submitted must also be added to a table in the database. Determine the desired list of accounts, e.g. "ric jim selim" and execute the following command:
Code Block |
---|
$ for u in ric jim selim ; do > psql -U GLAST_ISOC -d GLAST_ISOC -c "insert into fcopy_submitter values( (select max(submitter_pk)+1 from fcopy_submitter), '$u');" GLAST_ISOC > done |
...
Enable the FASTCopy-automation cron jobs
The ISOC RPM installation creates a user account named 'glastops' under which the FASTCopyDB software and the underlying FASTCopy operations take place. Cron jobs executing under this account are used to scan the database tables for work to be performed. Although the installation adds these entries to the glastops crontab file, they are initially commented out. Use the following command to bring up the glastops crontab in the vi editor; uncomment all the job entries and save and close the file to activate the FASTCopy cron jobs:
Code Block |
---|
$ su
# VISUAL=vi crontab -u glastops -e
# exit
$
|