#!/bin/sh # telnet - encourage the use of ssh instead by showing the user # how it's done. # # Eric Myers - 13 April 2000 # @(#) $Id: telnet,v 2.5 2000/06/16 00:37:18 myers Exp myers $ ###################################################################### # First some exceptions: # @(#) Allow telnet to library server. if echo "$*" | grep mirlyn then # System telnet should be found here (omit /usr/local/bin) PATH="/bin:/usr/bin:/usr/ucb" telnet $* exit $? fi # @(#) Allow telnet if alternate port if [ $# -gt 1 ] then # System telnet should be found here (omit /usr/local/bin) PATH="/bin:/usr/bin:/usr/ucb:/usr/bsd" telnet $* exit $? fi # @(#) Warn them not to use telnet and try ssh instead trap "echo ' Ouch!'; exit" 2 cat <