scripts problem


 
Thread Tools Search this Thread
Operating Systems HP-UX scripts problem
# 8  
Old 09-24-2007
Quote:
Originally Posted by Asheley Ryan
Unfortunately, they still won't run.
You aren't giving us much of a clue, if "they still won't run" surely the shell or something is printing some kind of error, I suggest posting

(a) the attributes of the file, eg "ls -ld filename"

(b) how you try and run the script

(c) the output on the screen when you do try
# 9  
Old 09-24-2007
I am going to use the script "bounceomni" as an example:

Here are the file attributes:

-rwxrwxrwx 1 root sys 256 Sept 20 02:56 bounceomi

This script is supposed to stop and then start the daemons for HP Omniback.

On the older machines, all you have to do is type

# bounceomni

and it works just fine.

If I try it on a new one, I get

# bounceomni
/sbin/sh: bounceomni: not found

I'm certainly no expert, but it seems like something changed in the file when I put it on these new machines via FTP.

Please tell me if there's any other information I could post that would help.
# 10  
Old 09-24-2007
Quote:
Originally Posted by Asheley Ryan
# bounceomni
/sbin/sh: bounceomni: not found
It's not on the PATH. Do the following in working and non-working environments:

Code:
echo $PATH

try

Code:
./bounceomni

# 11  
Old 09-24-2007
Can you tell me what that first command will do? Why do I not have to type that on the older machines??
# 12  
Old 09-24-2007
Quote:
Originally Posted by Asheley Ryan
Can you tell me what that first command will do? Why do I not have to type that on the older machines??
The echo $PATH merely shows you the contents of that environment variable.

The older machine may have the PATH configured differently, you say the new machines are fresh installs of the operating system. Do echo $PATH on both machines was a clue to seeing what was different between the environments.

Does this help, make a difference, solve the problem?
# 13  
Old 09-24-2007
Apparently all I had to do was type

# /tapescripts/<script name>

instead of just the script name. I still want to know how I can fix the new ones to behave like the old ones so I don't have to type that, but for now I am thrilled. Thanks so much for your help!!!
# 14  
Old 09-24-2007
Quote:
Originally Posted by Asheley Ryan
I still want to know how I can fix the new ones to behave like the old ones so I don't have to type that
You need to find where your user (root?) has it's environment setup at login.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in two scripts

I wrote one script it is showing wrong out but i wrote another script it is showing right out. I really don't know the difference. first-script-showing mistake. #!/bin/bash echo "Counting the Databases" countp1=`ps -ef |grep pmon |grep -v grep | wc -l` echo $countp1 #countp=3 if ... (3 Replies)
Discussion started by: learnbash
3 Replies

2. UNIX for Dummies Questions & Answers

Execution problem in running multiple scripts

hi all, I have 3 individual scripts to perform the task . 2nd script should run only after the 1st script and 3rd script must run only after first 2 scripts are executed successfully. i want to have a single script that calls all this 3 scripts .this single script should execute the 2nd script... (1 Reply)
Discussion started by: Rahul619
1 Replies

3. Homework & Coursework Questions

Problem with Shell Scripts deleting text in files.

Me and a friend are working on a project, and We have to create a script that can go into a file, and replace all occurances of a certain expression/word/letter with another using Sed. It is designed to go through multiple tests replacing all these occurances, and we don't know what they will be so... (1 Reply)
Discussion started by: Johnny2518
1 Replies

4. Shell Programming and Scripting

Shell performance problem with locating scripts

I am currently trying out MKS Toolkit C Shell, and I've no problems with it until I try add directories to PATH that are located on a network drive. When I do that, the shell performance slows down significantly and no longer runs fast. In fact, it takes seconds for something that should take... (1 Reply)
Discussion started by: vas28r13
1 Replies

5. Shell Programming and Scripting

Problem with ftp scripts and cron

Need some help / advice with the follow script... Basically i have an FTP server that connects to other ftp servers and sends and downloads files every few hours or so. There are 12 different accounts that all have 2 scripts each, one to send and one to receive. Below is an example send script... (1 Reply)
Discussion started by: mokachoka
1 Replies

6. Shell Programming and Scripting

Cron and multiple scripts problem.

Hello All, I have 3 scripts namingly 1X 2X and 3X. I have one directory ABC created which contains some 40 sub directories. I have one input file in the below format.The input file resides in ABC directory. Inputfile format; subdirectoryname date subdirectoryname1 date subdirectoryname2... (1 Reply)
Discussion started by: RSC1985
1 Replies

7. UNIX for Dummies Questions & Answers

Script Problem-Processing multiple scripts

Hi All, I have four scripts to run. My 1st script will make script2 and script3 to run. I am setting a cron job for this script1 to run continuously. This script1 will check for 2 text files and based on the existance of those text files it will initiate the script2 and script3. Now my doubt... (2 Replies)
Discussion started by: RSC1985
2 Replies

8. UNIX for Dummies Questions & Answers

PHP scripts problem!

Hi, I've configured a server with Debian Etch 4.0. I followed these instructions: Install and Configure Apache2 with PHP5 and SSL Support in Debian Etch -- Debian Admin But when I try to launch a php script with phpinfo() in my browser, It showed me the download manager window.(i.e. wanna to... (9 Replies)
Discussion started by: mjdousti
9 Replies

9. Shell Programming and Scripting

Shell scripts problem...

Hi, sprt.sh #!/bin/ksh ############################################################################### # ----------------------------------------------------------------------------- # # ------------------------------------------------------------------------------... (1 Reply)
Discussion started by: parola
1 Replies

10. UNIX for Advanced & Expert Users

problem with diff and tcl scripts freaking out unix

running solaris 2.5.1 on a sparc5, with less than 12 users runnign compilers, gui's, really not a heavy load on it however, sometimes, not always, when users run diff, or sdiff or a .tcl script, the computer locks up. One time right before everything froze, I noticed in top, that the sdiff process... (2 Replies)
Discussion started by: kymberm
2 Replies
Login or Register to Ask a Question