Search Results

Search: Posts Made By: albert_newton
11,260
Posted By albert_newton
I tried using packgeDir=`dirname $0' in the...
I tried using
packgeDir=`dirname $0'
in the script as you suggested.. and still get the same errors...

I also tried running with the entire path:

sh /abc/efg/install.sh

but no luck with...
11,260
Posted By albert_newton
Here is the install.sh script: #/bin/bash ...
Here is the install.sh script:

#/bin/bash

# determine the directory containing this script
packgeDir=`echo $0 | awk -F 'install.sh' '{print $1}'`
currDir=$PWD

cd "$packgeDir"

if [ -d...
11,260
Posted By albert_newton
Running the above command gives the following...
Running the above command gives the following output:

[oracle@vmhealthedb02]$ sh -x ./install.sh
+ $'\r'
: command not found2:
++ echo ./install.sh
++ awk -F install.sh '{print $1}'
+...
11,260
Posted By albert_newton
Ok. I tried : chmod +x install.sh sh...
Ok. I tried :

chmod +x install.sh
sh ./install.sh,

and that did not solve the problem.

Here is the listing of ls -l on that directory:

[oracle@vmhealthedb02]$ ls -l
total 20
-rw-r--r--...
11,260
Posted By albert_newton
I tried that already, that gives the same error. ...
I tried that already, that gives the same error.

---------- Post updated at 04:31 PM ---------- Previous update was at 04:03 PM ----------

As I said the script runs fine if I just copied the...
11,260
Posted By albert_newton
Error running a .sh script when extracted from a jar file.
I am trying to run a script called install.sh as follows:

I get a jar file, and extract it using the command:

unzip filename.jar -D path/to/files

then I navigate to that directory where I...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy