Re: serial device access from welcome script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thilo Riessner writes:
> >From a program called by the welcome script which tries to access the serial 
> port (in this case /dev/ttyI0) I get the errormessage:
>         Port or socket open error!
> I guess, that the serial port is blocked by the pppd.
> Is there any possibility to access the serial port nevertheless?

You shouldn't be trying to access the port directly.  Instead, when
the "welcome" script runs, your script's standard input and standard
output are connected directly to the tty.

You should be able to use 'read' and 'echo' (or whatever your
scripting language supports) without having to open anything.

This is true for "connect", "disconnect", "init", and "pty" as well.

-- 
James Carlson         42.703N 71.076W         <carlsonj@xxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux