passing info to other programs
Gert Doering (gert@greenie.muc.de)
Mon, 1 Nov 1999 21:44:44 +0100
Hi,
On Mon, Nov 01, 1999 at 12:16:54PM -0600, Scott_Knight@ssmhc.com wrote:
> I've looked through the docs and I can see how to call other programs, but how
> do I pass information to them, such as the port number (serial device number).
The serial port number can be found via the "ttyname()" C function or the
"tty" shell command.
The caller ID etc. are passed as environment variables (retrieved by getenv).
> if I can use /bin/login @
> where the "@" passes the userid. Can I pass other information?
Right now, only the CONNECT xxx string, using "\I". (This is a hack
for "/bin/login -h \I @").
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de