I have a problem concerning a extracting a BIN using a script. I have followed the instructions found here:
http://java.sun.com/products/archive...all-linux.html
for installing the Self-Extracting file.
My script looks like this: (well a small part anyway, the whole thing is around 220 lines)
Code:
cp j2sdk-1_4_2_06-linux-i586.bin /usr/java
/usr/java/./j2sdk-1_4_2_06-linux-i586.bin
When I do these commands manually the bin extracts in /usr/java. But when I execute this script the files are extracted to where ever my script is. For example if I run the script in my home directory the files are extracted there instead of /usr/java.
Is there anyway I can force it to extract to the correct directory without changing directories in my script?
Thanks in advance.