[comp.unix.questions] port left open after uucp.

larry@sgistl.SGI.COM (Larry Autry) (05/08/88)

The serial port is being left open on my system after uucp calls out.  It
does not hang up.  I know this because if I do a 'cu' I will get the login
prompt on the system that my system calls.  I have an autologout script
that get called by cron to logout dialin users.  I need a similar script
for closing an open port when there is no process attached to it.  It is
easy to check for the absence of an 'LCK' file.  If there is no file, I'd
like to take appropriate action to hang up the line, logout, or whatever.
My question is, what is the appropriate action?  I can figure out the
rest.

-- 
					Larry Autry
larry@sgistl.sgi.com
       or
{ucbvax,sun,ames,pyramid,decwrl}!sgi!sgistl!larry

kutz@bgsuvax.UUCP (Kenneth Kutz) (05/10/88)

In article <5602@sgistl.SGI.COM>, larry@sgistl.SGI.COM (Larry Autry) writes:
> The serial port is being left open on my system after uucp calls out.  It
> does not hang up.
>                                                  I need a similar script
> for closing an open port when there is no process attached to it.  It is
> easy to check for the absence of an 'LCK' file.  If there is no file, I'd
> like to take appropriate action to hang up the line, logout, or whatever.
> My question is, what is the appropriate action?  I can figure out the
> rest.

Write the appropriate sequence to cause the modem to hang up the phone
to the appropriate port.  For example if '+++' or 'ATH' hangs up the
phone, write these character strings to /dev/tty[nn].



-- 
--------------------------------------------------------------------
      Kenneth J. Kutz         	CSNET kutz@bgsu.edu
				UUCP  ...!osu-cis!bgsuvax!kutz
 Disclaimer: Opinions expressed are my own and not of my employer's
--------------------------------------------------------------------