--- In "Jon L" <> wrote:
>
> > # Ensure serial device file name is consistent
> > #
> > eval `/usr/local/bin/xuartctl --port 0 --server --speed 38400 2>&1`
> > sleep 1
> > ln -sf $ttyname /dev/xuart0
> > fi
>
> ???? I don't get how your version of xuartctl works. I undertand your use
> of $ttyname, that's fine, but how is it that xuartctl ALWAYS uses
> /dev/xuart0??? That was a big problem for me at first on a TS-7500. the
> xuartctl would evaluate to /dev/pts/xxxx where the xxxx is a moving target.
>
That's precisely the point - the xuartctl program *doesn't* use /dev/xuart0.
The output from the xuartctl program is ttyname=/dev/pts/xxxx.
The eval means execute this, so a shell variable ttyname is set to
/dev/pts/xxxx, then the ln links /dev/pts/xxxx (which is unknown but exists) to
/dev/xuart0 (which doesn't exist yet).
The sleep 1 should be unnecessary as the xuartctl won't exit until it has
output the string. I think.
Martin
------------------------------------
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/
|