Updates from SPIRES to INSPIRE
Nightly updates flow from SPIREs to INSPIRE, allowing us to maintain data in SPIRES while editing tools are still under development.
SPIRES side
On SPIRES side, SPIRES nightly generates
result.today
files with the list of modified records for the day.
In the crontab of
tcb
(in
tcb
not
slaclib
because we think there is a permissions issue:TODO) we have:
sunspi4;1800 11 23 * * * /afs/slac/g/library/inspire/data/spires_to_inspire.sh
sunspi4;400 09 23 * * * cp /u2/spires/slaclib/inspire/*.today /afs/slac/g/library/inspire/data/
The second line moves result.today tot he right place (permissions issue, I think, maybe this can be eliminated)
The first line is a shell script that deconstructs the today files into small chunks and then runs
/afs/slac/g/library/bin/spiresdump.pl -tinspire_update -s ${file};
on each of the files. This actually creates the xml output files from SPIRES, which are then stored in:
INSPIRE side
on prod (pcudssw1506.cern.ch) we have in root crontab:
# INSPIRE update:
23 09 * * * /usr/bin/sudo -u apache /afs/cern.ch/project/inspire/updates/inspire_update.sh
</verabatim>
Which is the shell script that does the fetching of the files, bibconvert using xslt and the bibupload of the records.
to ssh to CERN:
ssh <account>@lxplus.cern.ch
then ssh pcudssw1506 (or 1508 for DEV)
-- Main.TravisBrooks - 16-Sep-2010