Amanda-Users

R: R: Search file in amanda database

2005-06-10 09:46:20
Subject: R: R: Search file in amanda database
From: "Montagni, Giovanni" <gmontagni AT manord DOT com>
To: <amanda-users AT amanda DOT org>
Date: Fri, 10 Jun 2005 15:29:29 +0200
The path of bash shell is correct (/bin/bash), i've also tried zsh, ksh, ash, 
but i still have the same error.
I didn't tried sh because it is a symlink to bash.
The original script came from aix, i suppose it has different syntax 
somewhere...

any ideas?

thanks for your help,
Giovanni

-----Messaggio originale-----
Da: owner-amanda-users AT amanda DOT org
[mailto:owner-amanda-users AT amanda DOT org]Per conto di Jon LaBadie
Inviato: venerdì 10 giugno 2005 15.05
A: amanda-users AT amanda DOT org
Oggetto: Re: R: Search file in amanda database


On Fri, Jun 10, 2005 at 11:48:30AM +0200, Montagni, Giovanni wrote:
> Your script is beautiful, but on my server it didn't works. i have changed 
> the path correctly, but it give me this error:
> 
> : bad interpreter: No such file or directory
> 

Sounds like the first line of the script points to an
incorrect location for "bash".  The original script,
IIRC, said on the first line:

        #!/bin/bash

Perhaps you don't have bash or it is in a different location.

Try running the command "type bash".

If it comes back with a path, like /usr/bin/bash,
adjust the first line of the script accordingly.

If "type bash" reports you don't have a version of
bash, try ksh or zsh.  As a last resort, try sh.


-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)


<Prev in Thread] Current Thread [Next in Thread>