From owner-freebsd-questions Fri Aug 13 2:43:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from student-mailhub.dcu.ie (ns.dcu.ie [136.206.1.3]) by hub.freebsd.org (Postfix) with ESMTP id 22DD714E2A for ; Fri, 13 Aug 1999 02:43:39 -0700 (PDT) (envelope-from pooka@redbrick.dcu.ie) Received: from mother.redbrick.dcu.ie (postfix@Mother.RedBrick.DCU.IE [136.206.15.2]) by student-mailhub.dcu.ie (8.9.3/8.9.3/893-FD) with ESMTP id KAA02919; Fri, 13 Aug 1999 10:43:27 +0100 (BST) Received: by mother.redbrick.dcu.ie (Postfix, from userid 2033) id 0604D43880; Fri, 13 Aug 1999 10:43:26 +0100 (BST) Date: Fri, 13 Aug 1999 10:43:26 +0100 To: Morten Seeberg Cc: questions@FreeBSD.ORG Subject: Re: FreeBSD Commandline Makro Function Message-ID: <19990813104326.B14800@mother.redbrick.dcu.ie> References: <000f01bee56b$a3dca3c0$a00f010a@SOS> <37B3E09F.9C1E8752@baker.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <37B3E09F.9C1E8752@baker.ie>; from Cillian Sharkey on Fri, Aug 13, 1999 at 10:08:47AM +0100 Organization: My Own Private Hideyhole, Inc. From: pooka@redbrick.dcu.ie (Tiny Non Cats) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Aug 13, 1999 at 10:08:47AM +0100 Cillian Sharkey said: > as for doing automatic telnets etc. you might want > to look at the "expect" program which as far as I know > is designed for send/expect type situations.. > You can also do something along the lines of: --- #!/bin/sh (echo "username"; sleep 2; echo "password"; sleep 2; \ echo "echo Hi there, this is where you'd put the commands | mail username"; \ sleep 2; echo "exit") | telnet hostname --- Of course, that's cheating. ;o) Cian -- What think ye of Christ? Whose son is he? Will you, like Peter, boldly say: "Who?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message