On 03/25/2010 01:10 PM, Rodney Baker wrote:
On Thu, 25 Mar 2010 21:33:00 Johan wrote:
On 03/25/2010 12:44 PM, Adam Tauno Williams wrote:
On Thu, 2010-03-25 at 12:03 +0200, Johan wrote:
On 03/25/2010 09:42 AM, Pe
Johan, try this instead: ./addition
Well I'll be .....?? Easy just one char added and all is well. Funny scripts do work without the /
Scripts aren't binaries; something compiled to ELF has no interpreter [it is a real "program"].
Thanks. This what it looks like on a script.
johan@linux-v2bn:~> ./AGnucash-save bash: ./AGnucash-save: bin/bash: bad interpreter: No such file or directory johan@linux-v2bn:~> . AGnucash-save
May you have a nice day. Regards Johan Sch
Johan,
What is the first line of your script? It it:
#!/bin/bash
or #!bin/bash.
If the second case, it is wrong, because bin/bash is a path relative to the pwd. It needs to be an absolute path /bin/bash as this is where bash resides (unless you have a custom version of bash residing in a non-standard path that you want to use to run the script for some reason).
Hi Rodney, What I was trying to demonstrate here was.. 1__ ./binary .. on a binary you need the forward / (no spaces ./b*) otherwise no dice. and 2__ . script .. on a script only the dot . (a space between . and s* ) otherwise no dice. All this I only found out about 2 hrs ago by a kind person on the list. I use #!/bin/bash Thanks Regards Johan Sch -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org