Re: [newbie] /bin/sh: bad interpreter

2004-12-13 Thread Paul Smith
On Sun, 12 Dec 2004 20:42:47 -0700 (GMT-07:00), Simon Roberts
[EMAIL PROTECTED] wrote:
 Bad interpreter is the error bash gives when the script isn't executable.
 
 Do
 
   chmod +x LinxuxInstaller.bin
 
 and it'll probably be happy.
 
 (Anyone know why it does this strange thing?)

Simon,

It is strange, as if I go to the directory where LinxuxInstaller.bin is and I do

sh ./LinuxInstaller.bin

LinxuxInstaller.bin runs!

Paul


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] /bin/sh: bad interpreter

2004-12-13 Thread Simon Roberts
The syntax that works for you (sh xyz) says start a shell, and have that 
shell read this file, and follow the instructions in it. To do that, you must 
have read permission for the file. By contrast ./xyz says execute this file 
and for that, you must have execute permission :) These two really are handled 
differently, in the first case, you'll get by without the #!/bin/bash at the 
first line of the file, in the second case, the kernel loads the file, then 
examines it to determine _how_ to execute it (parsing, as it does so, the 
#!/blah, which tells it that it has a script and what interpreter to invoke).

What seems really odd to me is that every other shell I've ever used 
(including, I thought bash in the past/on other Unixen) say cannot execute if 
they find the file you name as $0 on a command line doesn't have execute 
permission for you. So, this error is really bizzare in my book. But whatever, 
once you know, you can handle it, right?

Cheers,
Simon


-Original Message-
From: Paul Smith [EMAIL PROTECTED]
Sent: Dec 13, 2004 4:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] /bin/sh: bad interpreter

On Sun, 12 Dec 2004 20:42:47 -0700 (GMT-07:00), Simon Roberts
[EMAIL PROTECTED] wrote:
 Bad interpreter is the error bash gives when the script isn't executable.
 
 Do
 
   chmod +x LinxuxInstaller.bin
 
 and it'll probably be happy.
 
 (Anyone know why it does this strange thing?)

Simon,

It is strange, as if I go to the directory where LinxuxInstaller.bin is and I do

sh ./LinuxInstaller.bin

LinxuxInstaller.bin runs!

Paul




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



[newbie] /bin/sh: bad interpreter

2004-12-12 Thread Paul Smith
Dear All

I am trying to install a program using the following command inside a
the script installMapleLinuxSU:

sh ./LinuxInstaller.bin

but I get the error:

bash: ./installMapleLinuxSU: /bin/sh: bad interpreter: Permission denied.

Any ideas?

Thanks in advance,

Paul

PS: Since I am a GMail user, please be sure that you reply to the list.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] /bin/sh: bad interpreter

2004-12-12 Thread Todd Slater
On Sun, Dec 12, 2004 at 11:30:19AM +, Paul Smith wrote:
 Dear All
 
 I am trying to install a program using the following command inside a
 the script installMapleLinuxSU:
 
 sh ./LinuxInstaller.bin
 
 but I get the error:
 
 bash: ./installMapleLinuxSU: /bin/sh: bad interpreter: Permission denied.
 
 Any ideas?

Paul,

You don't need both sh and ./ so try either

sh LinuxInstaller.bin
or
./LinuxInstaller.bin
or even
/full/path/to/LinuxInstaller.bin

Todd


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] /bin/sh: bad interpreter

2004-12-12 Thread Mikkel L. Ellertson
Paul Smith wrote:
Dear All
I am trying to install a program using the following command inside a
the script installMapleLinuxSU:
sh ./LinuxInstaller.bin
but I get the error:
bash: ./installMapleLinuxSU: /bin/sh: bad interpreter: Permission denied.
Any ideas?
Thanks in advance,
Paul
PS: Since I am a GMail user, please be sure that you reply to the list.
Check if LinuxInstaller.bin is a script, and if it is, look at the first 
line.  It should be #!/something where something is the interpreter 
for running the script.  One problem that is still fairly common is that 
the full path will be provided, but it will be the wrong one for your 
system.  If it is /usr/local/bin, try changing it to /usr/bin and see if 
it works.  Or you can run witch command where command is the 
interpreter without the path.  This will return the path if the command 
can be found.

Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] /bin/sh: bad interpreter

2004-12-12 Thread Simon Roberts
Bad interpreter is the error bash gives when the script isn't executable.

Do

  chmod +x LinxuxInstaller.bin

and it'll probably be happy.

(Anyone know why it does this strange thing?)

Cheers,
Simon


-Original Message-
From: Paul Smith [EMAIL PROTECTED]
Sent: Dec 12, 2004 9:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] /bin/sh: bad interpreter

On Sun, 12 Dec 2004 10:28:31 -0600, Mikkel L. Ellertson
[EMAIL PROTECTED] wrote:
  I am trying to install a program using the following command inside a
  the script installMapleLinuxSU:
 
  sh ./LinuxInstaller.bin
 
  but I get the error:
 
  bash: ./installMapleLinuxSU: /bin/sh: bad interpreter: Permission denied.
  
 Check if LinuxInstaller.bin is a script, and if it is, look at the first
 line.  It should be #!/something where something is the interpreter
 for running the script.  One problem that is still fairly common is that
 the full path will be provided, but it will be the wrong one for your
 system.  If it is /usr/local/bin, try changing it to /usr/bin and see if
 it works.  Or you can run witch command where command is the
 interpreter without the path.  This will return the path if the command
 can be found.

Thanks, Mikkel and Todd. Meanwhile, by running LinuxInstaller.bin
directly, I was able to install the software I wanted to install.

Paul




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] bin

2004-04-27 Thread robin
David Williams wrote:
I have installed 10.0 on top of 9.1
Most everything seems to be OK except that I can't run
whatever.bin files anymore. I take a really simple approach to stuff and I 
used konq for most stuff including this.
It won't run from the comand line either.
Is there some sort of file assoc that I have to force?

If it won't run from the command line, it's probably not a file 
assocation problem. It looks like for some weird reason your file 
permissions have been reset. Type ls -l *.bin and see what you get

-rwxr-xr-x  1 david david   249 Feb 20  2004 somescript.bin

If you get something like

-rw-r--r--  1 david david   249 Feb 20  2004 somescript.bin

(i.e. no xs in there), you need to type

chmod +x *.bin

which will make all .bin files in that directory executable.

Also check that you still own the files and they haven't switched to 
being owned by root.

Sorry if this is an overly simple explanation, but you did say you 
didn't use the command line much ;-)

Sir Robin

--
If the lion could speak, we would not understand it.
- Wittgenstein
Robin Turner
IDMYO
Bilkent Universitesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Bin files

2003-07-27 Thread Eric Huff
 I just noticed that this never made it to newbie because tsyko has a
 reply-to set, so I am forwarding it now for future reference.

After i gave up trying to tell everyone about this, i realized that
kmail  sylpheed (at least) have a way to get around this. I set kmail
to reply to list with my normal reply key.  In sylpheed, i set it to
reply to a specific address if you are in a specific folder.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] bin file

2003-01-03 Thread Gil Katz
i downloaded the j2re-1_4_1_01-linux-i586-rpm.bin
now how do i install it?
Gil


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] bin file

2003-01-03 Thread Klar Brian D Contr MSG/SICN
Run it as any other file. ./filename.bin.
You may have to chmod +x the file though.
After running this file, you will be left with an rpm file.
rpm -Uvh filename as root will install it.

Brian D. Klar - CVE
Multimax 
Network Engineer
WPAFB


-Original Message-
From: Gil Katz [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 8:14 AM
To: linux newbie
Subject: [newbie] bin file


i downloaded the j2re-1_4_1_01-linux-i586-rpm.bin
now how do i install it?
Gil



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] .bin

2002-10-27 Thread J. Kelley Jernigan
I tried that for Limewire as Root and it told me I didn't have permission.

Kelley

- Original Message -
From: Miark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 6:51 PM
Subject: Re: [newbie] .bin


 It's like an .exe file in Winsux--just run it:

   ./whatever.bin Enter

 You may have to be root.

 Miark

  On Wednesday 23 October 2002 03:18 pm, andy wrote:
   How do you install .bin files?








 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] .bin

2002-10-27 Thread Lars Ole Christoffersen
To execute files the should be executeable. To make them that it might
be necessary to do chmod 666 filename. If you then do a ls -l filename
you'll see the file permission to the far left something like rwxrwxrwx
or maybe r-xr-xr-x

søn, 2002-10-27 kl. 20:11 skrev J. Kelley Jernigan:
 I tried that for Limewire as Root and it told me I didn't have permission.
 
 Kelley
 
 - Original Message -
 From: Miark [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 23, 2002 6:51 PM
 Subject: Re: [newbie] .bin
 
 
  It's like an .exe file in Winsux--just run it:
 
./whatever.bin Enter
 
  You may have to be root.
 
  Miark
 
   On Wednesday 23 October 2002 03:18 pm, andy wrote:
How do you install .bin files?
 
 
 
 
 
 
 
 
  Want to buy your Pack or Services from MandrakeSoft?
  Go to http://www.mandrakestore.com
 
 
 
 
 

 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] .bin

2002-10-24 Thread Dennis and Sue
On Wednesday 23 October 2002 10:51 pm, you wrote:
 It's like an .exe file in Winsux--just run it:

   ./whatever.bin Enter

 You may have to be root.

 Miark

  On Wednesday 23 October 2002 03:18 pm, andy wrote:
   How do you install .bin files?

For some .bin files I had to do something like :

1 - chmod 700  awesomeprogram.bin enter

2 - ./awesomeprogram.bin enter


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] .bin

2002-10-24 Thread Hesham Khonji


./filename.bin when you are in the directory of the file, otherwise type the 
full path of the file. The reason you must include ./ when running 
executables from the current directory is security. Imagine someone plants a 
harmfull executable called 'cp' in some directory. When you want to use the 
copy command, while in that directory, the executable in the current 
directory would take precedence. ./ makes sure you want to run the 
executable in the current directory and not a globaly set command.



From: andy [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [newbie] .bin
Date: Wed, 23 Oct 2002 15:18:23 -0500

How do you install .bin files?

Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com



_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] .bin

2002-10-24 Thread JM5379
also, make sure you have the execute permission set for yourself
for that file, since it most likely will not have that set by
default when downloaded.  since it's most likely an install
script of some sort, chmod 700 (rwx--) if you want only
yourself to do anything at all with it, otherwise, whatever modes
are appropriate for your environment.


--- Original Message ---
From: Hesham Khonji [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [newbie] .bin



./filename.bin when you are in the directory of the file,
otherwise type =
the=20
full path of the file. The reason you must include ./ when
running=20
executables from the current directory is security. Imagine
someone plant=
s a=20
harmfull executable called 'cp' in some directory. When you want
to use t=
he=20
copy command, while in that directory, the executable in the
current=20
directory would take precedence. ./ makes sure you want to run
the=20
executable in the current directory and not a globaly set command.



From: andy [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [newbie] .bin
Date: Wed, 23 Oct 2002 15:18:23 -0500

How do you install .bin files?

Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com


_
Unlimited Internet access -- and 2 months free!=A0 Try MSN.=20
http://resourcecenter.msn.com/access/plans/2monthsfree.asp






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] .bin

2002-10-24 Thread andy
Yea it seemed to work too when i typed in something like su ./file.bin


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] /bin/login missing

2001-08-29 Thread Brandon Caudle

Hey Everyone,
Recently, I have been unable to telnet into my machine (Suse 7.2). This is
because /bin/login is missing, (I am very suspious about this) So how do I
go about replacing it?

Thanks,

Brandon Caudle
--
15yr Old Avid Unix User (HP-UX,FreeBSD,Linux)
Larkhaven Golf Course
Charlotte, NC

There cannot be a crisis next week. My schedule is already full. -- Henry
Kissinger



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] .bin files

2000-10-03 Thread Pat McCauley

I just downloaded Star Office 5.2 and it came in one .bin file.  How do I 
install, run, or decompress this?
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.





Re: [newbie] .bin files

2000-10-03 Thread Charles A Edwards


- Original Message -
From: "Pat McCauley" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 03, 2000 9:11 AM
Subject: [newbie] .bin files


 I just downloaded Star Office 5.2 and it came in one .bin file.  How do I
 install, run, or decompress this?


It is an automatic installation program. Just double click on the downloaded
file and it will launch the installation program.( It takes it about
15-20sec to ever start.)

   Charles