ts-7000
[Top] [All Lists]

[ts-7000] Re: shell script puzzlement

To:
Subject: [ts-7000] Re: shell script puzzlement
From: "kevin_at_newport" <>
Date: Mon, 02 May 2011 22:12:10 -0000
Aha!  That did the trick.  Thought my Windows editor was dumb enough not to 
introduce extra characters, but I guess not.  Maybe I'll have to re-learn VI 
<grin>.   Used it back in the early 80s. Then Wordstar on CP/M.  Then Turbo 
Pascal rev 1.0. Then...... never mind.... 

Thanks loads, Jim.

Kevin

--- In  Jim Jackson <> wrote:
>
> 
> Actually just realised what your problem is.
> 
> You wrote the file under Windows and transfered it to the ts7800.
> The file will have DOS end of line termination which is the 2 character
> sequence CR (ASCII 13) LF (ASCII 10). Linux (and unices in general)
> expect lines to be terminated JUST with LF (ASCII 10).
> 
> You need to strip out the CR's. 
> 
> Try this on the ts7800
> 
>  $ tr -d '\015' < Helloworld.sh > Helloworld2.sh
>  $ chmod 755 Helloworld2.sh
>  $ ./Helloworld2.sh
> 
> The tr removes CR (in octal 13 is 015, "man tr" tells you about tr)
> 
> Try to write scripts on the Linux system itself.
> 
> cheers
> Jim
> 



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

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

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU