From owner-freebsd-questions Sat Jun 13 09:05:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA03615 for freebsd-questions-outgoing; Sat, 13 Jun 1998 09:05:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gate.ljis.ml.org (cyberworld.demon.co.uk [158.152.125.109]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA03602 for ; Sat, 13 Jun 1998 09:05:47 -0700 (PDT) (envelope-from ljohnston@cyberworld.demon.co.uk) Received: (from ljohnston@localhost) by gate.ljis.ml.org (8.8.8/8.8.8) id RAA00626; Sat, 13 Jun 1998 17:05:35 +0100 (BST) (envelope-from ljohnston) From: Lee Johnston Message-Id: <199806131605.RAA00626@gate.ljis.ml.org> Subject: Re: telnet non-interactively In-Reply-To: <01BD96B4.1563BEA0@MANNY> from Dave Bender at "Jun 13, 98 09:12:53 am" To: bendede@startribune.com (Dave Bender) Date: Sat, 13 Jun 1998 17:05:34 +0100 (BST) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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