How do I install SH or SH.Bin file formats?
How do I install SH or SH.Bin file formats?
you can use the sh command, eg:
$sh file.bin
or
$sh file
the other way is to make the file into an executable.
type ls-l filename and take a look at the first bit, it might be like this:
-rw------- ...... file name
this means that it is not executable. do this: chmod a+x filename then the ls-l should look like:
-rwx--x--x ...... filename
this means you can now run the file.
type in ./filename at the prompt (the ./ means that the file is in the current directory)
Hope this helps
Alastair
whatdoyougetwhenyoumultiplysixbynine??
I can't seem to get it working.
[root@bgp01040038bgs root]# $sh
[root@bgp01040038bgs root]# $sh UT2003-Demo-Linux.sh.bin
bash: UT2003-Demo-Linux.sh.bin: command not found
[root@bgp01040038bgs root]# $sh UT2003-Demo-Linux.sh.bin
bash: UT2003-Demo-Linux.sh.bin: command not found
[root@bgp01040038bgs root]# $sh UT2003-Demo-Linux.bin
bash: UT2003-Demo-Linux.bin: command not found
[root@bgp01040038bgs root]#
Prefixing the filename with "sh" should not be necessary. If the file is executable:
$ ./UT2003-Demo-Linux.sh.bin
or if for some strange reason "sh" is required
$ ./sh UT2003-Demo-Linux.sh.bin
Jim H
Man it still won't work
[root@bgp01040038bgs root]# $ ./UT2003-demo-linux.sh.bin
bash: $: command not found
[root@bgp01040038bgs root]# $ ./UT2003-demo-linux.sh.bin
bash: $: command not found
[root@bgp01040038bgs root]# $ ./UT2003-demo-linux.sh.bin
Change to the directory where the bin file is and post the output of: ls -l
Jim H
ah...
don't type $
that was just there to show that you type it at a prompt
sorry bout that
JimH,
i thought you could use sh (eg /bin/bash) to call a shell script that didn't have x attrib set
whatdoyougetwhenyoumultiplysixbynine??
LOL, nice pickup Alastair. I wasn't paying attention and missed that. :POriginally Posted by alastair
Jim H
Yeah, those things happen when you get oldOriginally Posted by JimH
:P
whatdoyougetwhenyoumultiplysixbynine??
Bookmarks