User guide

Timing and cron Scripts
PCN Process User Guide (301945-A)
Behind the Scenes: B-3
Timing and cron Scripts
The PCN/EDA process depends on a number of
cron
scripts, which are scripts run
by the
cron
process according to certain schedules that determine when
processing takes place and when files are updated. Other scripts are run manually
on a regular basis, or are run in a non-UNIX environment by a scheduler program.
Note:
The scripts in this section are for EDAs use in moving information into
/bay
dir
/dra/rel
.
cron Scripts
The
cron
scripts include:
get_rev_2brel
—Run daily at 21:59 (West Coast time), this script checks out
all the subdirectories in the
/2brel/mech
and
docs
directories to create lists of
files and documents to move.
The script adds to the to-be-moved lists when a check of each directory’s
name of
part
.
minor_rev
(i.e.,
partnum.nn
) matches the current revision of that
part in the SAP database. (The minor rev number should match because the
PCN issued for the
/2brel
files should have bumped SAP’s rev number.)
create_out_pulsar
—Run daily at 22:45 (West Coast time), this script:
copies data according to the lists created by
get_rev_2brel—
as long as
there is a .ps file in the directory for each file
.
copies the .
ps
file to the Adobe Acrobat Distiller directory
/bay
dir
/dra/
2brel/mech/cre_out/pdf/in
, where the Distiller processes it, storing the
resulting .
pdf
file in
/bay
dir
/dra/2brel/mech/cre_out/pdf/out
.
Scripts Run Manually
Some scripts are run manually on a regular basis. These include:
create_arch_mv
—Run every weekday morning at BNE by an EDA support
coordinator (or automatically every morning at BNW), this script:
copies to
/bay
dir
/dra/rel
the files listed by
get_rev_2brel
(according to
which /
mech
directories had .
ps
files in them)
copies the .
pdf
file to the
/bay
dir
/dra/rel
area and
ftp
s it to the web.