MUMODEMS Archives

January 1997

MUMODEMS@LISTSERV.MIAMIOH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
aaron t porter <[log in to unmask]>
Reply To:
Miami's Modems <[log in to unmask]>
Date:
Tue, 21 Jan 1997 20:35:26 -0500
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (33 lines)
Clayton L. Hines ([log in to unmask]) wrote:
 
: However, yours is the second request I've seen today, so I think I'll go
: ahead and write one up, and ask someone to add it to the MUnet page
: < http://www.muohio.edu/munet/ >.  It'll take me a couple days, so until
: then, here are some key files:
 
	I don't know about you, but I hate getting dumped every five
hours.  Here's a simple way to avoid that.  I like using the lock file so
that if I'm using my modem for a non-ip chore, I won't be disturbed by the
script.
	Also, I had to give chat 45 seconds of 'timeout' to get ppp
working reliably.  Ick.  Just how slow is this NDS server?
 
 
-----
#!/bin/sh
#
#       A Chezy script that runs from cron to check for a lock file on my
#        modem device, and if not found, run ppp again.  You can change
#        the string 'ttyS0' to whatever modem device you use ie. 'modem'.
#               [log in to unmask]
#
 
  if [ -f /var/lock/LCK..ttyS0 ]; then
      touch /home/atp/ppplog # Not nessecary, but I like to
                             #  know it's working.
    else
        /usr/sbin/ppp-on ; echo -n "Reconnected " >> ~/ppplog  
	date >>  ~/ppplog    # Lets you know when your connection
			     #  was established.
  fi

ATOM RSS1 RSS2