chimera/util/dotelnet.script
2025-03-12 01:30:36 +09:00

19 lines
546 B
Bash

#!/bin/sh
#
if [ ! "$1" = "" ]
then
read hostname portno username password < $1
if [ ! "$username" = "" ]
then
if [ "$password" = "" ]
then
echo When connected, login as $username
else
echo When connected, login as $username with password $password
fi
fi
echo You may need to press Return to "wake up" the other computer
echo when you are connected.
telnet $hostname $portno
fi