From owner-freebsd-questions Fri Aug 13 2:52:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from www.menzor.org (rico.dk [195.249.147.160]) by hub.freebsd.org (Postfix) with ESMTP id ED6F614E2D for ; Fri, 13 Aug 1999 02:52:22 -0700 (PDT) (envelope-from morten@seeberg.dk) Received: from SOS (fwuser@gw.danadata.com [194.239.79.3]) by www.menzor.org (8.8.8/8.8.8) with SMTP id LAA02293; Fri, 13 Aug 1999 11:52:05 +0200 (CEST) (envelope-from morten@seeberg.dk) Message-ID: <011101bee571$632f4520$a00f010a@SOS> Reply-To: "Morten Seeberg" From: "Morten Seeberg" To: "Tiny Non Cats" , References: <000f01bee56b$a3dca3c0$a00f010a@SOS> <37B3E09F.9C1E8752@baker.ie> <19990813104326.B14800@mother.redbrick.dcu.ie> Subject: Re: FreeBSD Commandline Makro Function Date: Fri, 13 Aug 1999 11:51:16 +0200 Organization: SWAMP MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2918.2701 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2918.2701 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > You can also do something along the lines of: > (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 Ahh, why didnīt I think of this :) At least this works with telnet, now all I have to try, is whether the other programs need to do this with, accept info on stdin. Thanx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message