Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Jean Dubois (admin)" <j_dubois@decintrnt.digital.ca>
Subject: Re: Q: SLIP on OSF1?
Date: 1995/05/01	[thread overview]
Message-ID: <Pine.OSF.3.91.950501162510.20663A-100000@decintrnt.digital.ca> (raw)
In-Reply-To: 3np8ff$72l@amhux3.amherst.edu



> has anyone gotten an Alpha station running OSF1 to work as a SLIP
> host?
> 
	> if so, _please_ tell me how you did so!  

Yes this system has been on Internet thru SLIP for a year now.
Setup:  Run netsetup and configure the interface sl0

To dial you can do it maually with tip or use a script like the following 
to do it for you:
----------------------------------------------------------------------------
#!/usr/bin/csh -f

#
# Auto connection script 
# (Jean dubois)
#

#
# Change directory for KERMIT log
#
cd /var/adm

setenv LOG /var/adm/slip.log
set LOCK_FILE=/tmp/sliplock
set SLATTP=/usr/sbin/slattach
#
set KERM=/usr/local/bin/kermit
set KERM_SCRIPT=/usr/local/slip/connect_slip.krm
set PINGSYSTEM=blazer.crim.ca

#
# Check if SLIPP is UP
#
/sbin/ping -c1 $PINGSYSTEM > & /dev/null ; set pstat=$status

if ($pstat != 0) then
   echo "------> "`date`" SLIP is down" >>& $LOG
   #
   # Execute Kermit connect script
   #
   set isrun=`cat $LOCK_FILE >& /dev/null; echo $status`
   if ($isrun == 0) then
      #
      echo "Script already in progress .... EXINTING" >>& $LOG
      exit 0
   else
      #
      # Not as tight as a semaphore, but will do
      #
      touch $LOCK_FILE
      #
      # Kill SLATTP if runing
      #
      set slattpid=`ps auxww | grep slattach | grep ttyd0 | awk '{print $2}'`
      if ($slattpid != "") then
	 kill -9 $slattpid >>& $LOG
      endif
      #
      echo "Executing connection" >>& $LOG
      #
      $KERM $KERM_SCRIPT >>& $LOG

      echo "Connection done" >>& $LOG
      echo "" >>& $LOG
      rm -f $LOCK_FILE

   endif
else
   echo "------> "`date`" SLIP running" >>& $LOG
endif


----------------------------------------------------------------------------
The KERMIT script looks like:
----------------------------------------------------------------------------
set script echo on
set modem-dialer HAYES
set line /dev/ttyd0
set speed 38400
set dial display on
log transactions
dial ATDT99545075
script gin:--gin: PUT_USER_HERE ssword: PUT_PASSWORD_HERE enabled
run /usr/sbin/slattach -i +c /dev/ttyd0 38400
quit
----------------------------------------------------------------------

This is for a login SLIP connection, but I think you get the picture

Have Fun,

/jean



  reply	other threads:[~1995-05-01  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-27  4:00 Q: SLIP on OSF1? Cliff Lardin
1995-05-01  4:00 ` Jean Dubois (admin) [this message]
1995-05-05  4:00 ` Vikas Sontakke
1995-05-08  4:00   ` Greg Chesney
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox