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/
|