From owner-freebsd-questions Sun Apr 25 11:32: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id 2708314EFF for ; Sun, 25 Apr 1999 11:32:00 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id NAA06663; Sun, 25 Apr 1999 13:49:24 -0500 (EST) Date: Sun, 25 Apr 1999 13:49:22 -0500 (EST) From: Alfred Perlstein To: Justin Cc: questions@FreeBSD.ORG Subject: Re: help please :) In-Reply-To: <199904251023.UAA14906@warp-9.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 25 Apr 1999, Justin wrote: > hey... can someone please help me.. > i'm trying to make some sort of shell script.. > and i was wondering how i can do this.... > i need a script to telnet to localhost 6667 > then send the telnet command "pass aaa" > then "server woteva.com" > so i need it to do the equivelent of me typing > telnet localhost 6667 > pass aaa > server woteva.com > can anyone please give me some methods of how this is done.. > thanks heaps :) > justin > > (echo "pass aaa\nserver woteva.com" ; sleep 3) | telnet localhost 6667 -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message