LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   1 script 8 boxes and it is erroring on 3 of them (https://www.linuxquestions.org/questions/linux-newbie-8/1-script-8-boxes-and-it-is-erroring-on-3-of-them-690786/)

cat555 12-15-2008 04:18 PM

1 script 8 boxes and it is erroring on 3 of them
 
I am trying to place a script from one hp11-unix box (where it works) onto three others where it won't.
I am using csh and in the script I use the lines

set F_SYSTEMS=(/dbs01 /dbs02 /dbm01 /dbm02 /ora_home/app/oracle)

on this one the three others throw up on pulling the files. there should be 3 files pulled for ora_home. The 2 that are missing are
/ora_home/app/oracle/product/10.2 and
/ora_home/app/oracle/admin

It also won't pull them if I give the complete file name.


The other point it is erroring on is


foreach PARTITION (${F_SYSTEMS})

bdf ${PARTITION} > ${WRKFILE}
grep -v Filesystem ${WRKFILE} | grep % | tr -s "" " " | sed -e 's/^

On two of the scripts it doesn't recognize bdf, yet if I change it to df it errors df: open of /db01 failed


I am getting really frustrated and cannot seem to figure these out.
The script is the same on all 4 boxes , but obviously the boxes are exactly the same.

unSpawn 12-15-2008 05:51 PM

I usually find that describing errors doesn't beat posting actual errors.
Testing for executable /path/to/binary or file /path/to/*glob/file (or tracing the script) might reveal more.

cat555 12-16-2008 03:24 PM

thanks for your help!!!
 
you started me thinking in another direction and I got them to work.

one of the things I needed to do was include the entire path for those directories. What I had tried before turned out to be only a partial path, and the system didn't recognize it. I know, duh......

Anyway, I got them to work, so thanks again

unSpawn 12-16-2008 03:43 PM

Quote:

Originally Posted by cat555 (Post 3377784)
you started me thinking in another direction and I got them to work.

Awesome. Well done!


All times are GMT -5. The time now is 04:54 AM.