Amanda-Users

R: R: Search file in amanda database

2005-06-10 11:26:31
Subject: R: R: Search file in amanda database
From: "Montagni, Giovanni" <gmontagni AT manord DOT com>
To: "Paul Bijnens" <paul.bijnens AT xplanation DOT com>
Date: Fri, 10 Jun 2005 17:11:13 +0200
yes! this was the problem... now i've transferred it in text mode with winscp 
and it works!

Now i have to understand why it doesn't find anything... bah.

thanks a lot for your help,

Giovanni

-----Messaggio originale-----
Da: Paul Bijnens [mailto:paul.bijnens AT xplanation DOT com]
Inviato: venerdì 10 giugno 2005 16.35
A: Montagni, Giovanni
Cc: amanda-users AT amanda DOT org
Oggetto: Re: R: Search file in amanda database


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

Let me guess:  you saved the file as a DOS text file,
getting "\r\n" as end-of-line characters, and then the
OS tries to load the interpreter "/bin/bash\r", which does
not exist indeed.
(To see the complete error message, including the ctrl-M, do:

./thescript 2>&1 | cat -v

Use "dos2unix" to correct this,
or do:  tr -d '\r' < thefile > anewfile


-- 
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************




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