Stan,
I'm running 4.3 on an AW51B.  I changed the SA_EXEC="save_all.sh" reference
to "save_all" and didn't have any problem running the script.  All stations
saved correctly.  All of my stations are hosted on the box I ran the shell
with, so I didn't test the part of the script that does the save-alls over
a remote connection.  Do you have any problem running save_all (the Foxboro
utility) directly? 
cd /opt/fox/ciocfg/api 
save_all CP0552 /opt/SAVEALLS/CP0552
If that works and you are just trying to schedule save_alls on a regular
basis to your hard drive, a much simpler script will do that.  You lose the
portability, prior save_alls and have to manage hard drive space yourself,
but you can use a script like:

#!/bin/sh
cd /opt/fox/ciocfg/api
/opt/fox/ciocfg/api/save_all AB0550 /opt/SAVEALLS/AB0550
sleep 15
/opt/fox/ciocfg/api/save_all CP0551 /opt/SAVEALLS/CP0551
sleep 15
/opt/fox/ciocfg/api/save_all CP0552 /opt/SAVEALLS/CP0552

I run something like this weekly with a crontab entry on the stations host
like:

0 1 * * 0 /opt/tools/save.sh >> /opt/SAVEALLS/save.log

Regards,
Kevin FitzGerrell
Fairbanks Gold Mining, Inc.


---------------original message----------------
Subject:  Re: New script file: save_all.sh  
Date:  Tue, 4 Apr 2000 12:34:05 -0400 (EDT)  
From:  "Stan Brown" <[EMAIL PROTECTED]>  
To:  [EMAIL PROTECTED]  




On Tue Apr  4 10:35:30 2000 Duc M Do wrote...
>
>You're on the right track, Stan.

        Unfortunately the track seems to have a dead end :-(

        Runing ./sav_all.sh from /opt/tools after changing the name of the
        child script to run produces:

AP0550# ./sa* all

Save-all backup script version: 1.3.2 / March 2000
-----------------------------------------------------

Save-all for all stations in /etc/cplns selected

Stations selected for save_all:
Station      Host name
AB0550       AP0550
CP0551       AP0550
CP0552       AP0550

Writing logfile in: /opt/tools/saveall.log

Checking directories...
All directories OK.
Checking for available diskspace
Available space on system: 2189799
Space required on system: 6000
Enough space available, continuing...

#####################################################
# Automatic save-all procedure started
# Date:               Tue Apr 4 11:31:52 GMT 2000
# Started on:         AP0550
# Save-all Location:  /opt/SAVEALLS
# Backup location:    /opt/SAVEALLS/backup
#####################################################
./save_all.sh: syntax error at line 472: `end of file' unexpected
AP0550#

        Any sugestions? 




-----------------------------------------------------------------------
This list is neither sponsored nor endorsed by the Foxboro Company. All 
postings from this list are the work of list subscribers and no warranty 
is made or implied as to the accuracy of any information disseminated 
through this medium. By subscribing to this list you agree to hold the 
list sponsor(s) blameless for any and all mishaps which might occur due to 
your application of information received from this mailing list.

To be removed from this list, send mail to 
[EMAIL PROTECTED] 
with "unsubscribe foxboro" in the Subject. Or, send any mail to
[EMAIL PROTECTED]

Reply via email to