LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2008, 05:18 PM   #1
cat555
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Rep: Reputation: 0
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.
 
Old 12-15-2008, 06:51 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
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.
 
Old 12-16-2008, 04:24 PM   #3
cat555
LQ Newbie
 
Registered: Nov 2008
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 12-16-2008, 04:43 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by cat555 View Post
you started me thinking in another direction and I got them to work.
Awesome. Well done!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a shell script with dialog boxes into a GNOME application kushalkoolwal Programming 4 10-17-2008 07:21 AM
FC5 to FC6(Zod) upgrade Erroring out bobo12 Fedora 3 02-23-2007 10:57 PM
Streamzap remote and LIRC rpmbuild erroring out dittohead Linux - Hardware 2 01-02-2006 05:35 PM
bash script prob: pinging boxes bdp Programming 9 02-20-2004 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration