Date: Thu, 3 Feb 2005 12:46:47 -0500 From: Steven Friedrich <FreeBSD@insightbb.com> To: freebsd-questions@freebsd.org, jaymo@cromagnon.cullmail.com Cc: "Loren M. Lang" <lorenl@alzatex.com> Subject: Re: running interactive program from shell script Message-ID: <200502031246.47338.FreeBSD@insightbb.com> In-Reply-To: <200502030502.28281.jaymo@cromagnon.cullmail.com> References: <200501300533.51350.jaymo@cromagnon.cullmail.com> <20050201122226.GM8619@alzatex.com> <200502030502.28281.jaymo@cromagnon.cullmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 03 February 2005 06:02 am, Jay Moore wrote: > > > #! /bin/sh > > > > > > (sleep 3; > > > echo "password"; > > > sleep 3; > > > echo "ls -la"; > > > sleep 3; > > > ) | telnet -l user 192.168.0.2 did you try: #! /bin/sh while [ 1 ] do (sleep 3; echo "password"; sleep 3; echo "ls -la"; sleep 3; ) | telnet -l user 192.168.0.2 done This is what I alluded to in a previous post... -- i386 FreeBSD 4.11-STABLE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502031246.47338.FreeBSD>