Re: [foxboro] CP UPLOADS

"Anyone know if there is a way to automate CP Uploads."

Build the script below, run via crontab:

#! /bin/sh
cd /opt/fox/ciocfg/api
apidir=/opt/fox/ciocfg/api
savedir=/opt/customer/scripts/uploads
$apidir/iccdrvr.tsk -i $savedir/Xstation.upload -o $savedir/Xstation.log -n echo

The above calls Xstation.upload listed below:

OPEN X2CP01 MODIFY byME
UPLOAD
SHRINK
CLOSE
OPEN X2CP02 MODIFY byME 
UPLOAD
SHRINK
CLOSE
OPEN X2CP03 MODIFY byME
UPLOAD
SHRINK
CLOSE
EXIT

Creates the Xstation.log listed below:

DONE     1 OPEN X2CP01!: Sun Jul  6 23:00:02 2008
DONE     2 UPLOAD X2CP01!: Sun Jul  6 23:54:19 2008
DONE     3 SHRINK X2CP01!: Sun Jul  6 23:54:25 2008
DONE     4 CLOSE X2CP01!: Sun Jul  6 23:54:25 2008
DONE     5 OPEN X2CP02!: Sun Jul  6 23:54:25 2008
DONE     6 UPLOAD X2CP02!: Mon Jul  7 00:33:35 2008
DONE     7 SHRINK X2CP02!: Mon Jul  7 00:33:40 2008
DONE     8 CLOSE X2CP02!: Mon Jul  7 00:33:40 2008
DONE     9 OPEN X2CP03!: Mon Jul  7 00:33:40 2008
DONE    10 UPLOAD X2CP03!: Mon Jul  7 01:02:30 2008
DONE    11 SHRINK X2CP03!: Mon Jul  7 01:02:32 2008
DONE    12 CLOSE X2CP03!: Mon Jul  7 01:02:32 2008
DONE    13 EXIT X2CP03!: Mon Jul  7 04:10:05 2008


Works for us on AW51E's.

bud/






 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: