From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29031 invoked from network); 29 May 2006 08:56:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.2 (2006-05-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.2 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 May 2006 08:56:24 -0000 Received: (qmail 16785 invoked from network); 29 May 2006 08:56:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 May 2006 08:56:17 -0000 Received: (qmail 16569 invoked by alias); 29 May 2006 08:56:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10341 Received: (qmail 16558 invoked from network); 29 May 2006 08:56:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 May 2006 08:56:07 -0000 Received: (qmail 15644 invoked from network); 29 May 2006 08:56:07 -0000 Received: from p54852c97.dip0.t-ipconnect.de (HELO localhost) (84.133.44.151) by a.mx.sunsite.dk with SMTP; 29 May 2006 08:56:06 -0000 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.60) (envelope-from ) id 1FkdXf-0008Tm-Jt; Mon, 29 May 2006 10:56:04 +0200 Date: Mon, 29 May 2006 10:56:03 +0200 (CEST) Message-Id: <20060529.105603.104038094.Meino.Cramer@gmx.de> To: zsh@dervishd.net Cc: zsh-users@sunsite.dk Subject: Re: Vanishing files ? From: Meino Christian Cramer In-Reply-To: <20060529061119.GA12058@DervishD> References: <20060528183724.GB11731@DervishD> <20060528.204439.30183018.Meino.Cramer@gmx.de> <20060529061119.GA12058@DervishD> X-Mailer: Mew version 4.2.53 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: DervishD Subject: Re: Vanishing files ? Date: Mon, 29 May 2006 08:11:19 +0200 Hi Ra=FAl, the problem has been solved in between: The thing is, that vim and Microemacs are a little too smart as to be = helpful in this special case (and I myself didn't know that ;) My first line of the script was #!/bin/zsh^M and an interpreter with the name 'zsh^M' does not exist on my system. BANG! But the '^M' wasn't visible to me, since vim and Microemacs both recognized that file as to be "DOS-borne" and switches into DOS-mode internally. Vim and Microemacs have special modes to display all non-printable characters and would (as I thought in that moment) = display a stray ^M if switched to that mode. BUT they were als in DOS-mode, which means a ^M isn't a stray character but one half of the end of line in DOS mode (CR/LF instead of LF) So I only saw a "#!/bin/zsh$", which looks ok. The swiss army knife in this case was "cat". Cat doesn't know anything about DOS/UNIX or whatever. It simply pull everything = into visibility when called as "cat -v". And then there were light... ;O)) Keep hacking and thanks a lot for your help! Meino = > Hi Meino :) > = > * Meino Christian Cramer dixit: > > > * Meino Christian Cramer dixit: > > > > Why can I execute the contents of the script "tempwatch" but n= ot the > > > > script itsself? > > > = > > > Probably because you don't have read or execute permissions f= or > > > the script :?? You can execute the contents because you're enteri= ng > > > them in the command line, but that has nothing to do with the > > > problem you have. > > = > > = > > Hmmm...I did a = > > = > > solfire:/home/mccramer>ls -l bin/tmepwatch > > -rwxr-xr-x 1 mccramer users 79 May 28 20:36 bin/tmepwatch > > solfire:/home/mccramer> > > = > > and it seems to be an X-file ;) > = > It is!. Well, then the problem is probably that the first line of= > the script doesn't contain a valid interpreter. Could you please post= > the first line of bin/tmepwatch? > = > Ra=FAl N=FA=F1ez de Arenas Coronado > = > -- = > Linux Registered User 88736 | http://www.dervishd.net > http://www.pleyades.net & http://www.gotesdelluna.net > It's my PC and I'll cry if I want to... RAmen! > =