Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 1998 17:05:34 +0100 (BST)
From:      Lee Johnston <ljohnston@cyberworld.demon.co.uk>
To:        bendede@startribune.com (Dave  Bender)
Cc:        questions@FreeBSD.ORG
Subject:   Re: telnet non-interactively
Message-ID:  <199806131605.RAA00626@gate.ljis.ml.org>
In-Reply-To: <01BD96B4.1563BEA0@MANNY> from Dave  Bender at "Jun 13, 98 09:12:53 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Is there a way to script telnet sessions? I can write a shell script that starts telnet and connects to a host but then it stops and waits for me to enter telnet commands instead of reading the next line.

Sure, Take a look at expect somewhere int the ports. It allows you to
use shell scripts or command line parameters to use a interactive program
like telnet.

Lee.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806131605.RAA00626>