Subject: Re: patch to tip so you can use it from shell scripts
To: Marc Mengel <mengel@mwm.chi.il.us.chi.il.us>
From: Chris G. Demetriou <cgd@postgres.Berkeley.EDU>
List: netbsd-bugs
Date: 02/22/1994 17:45:22
> The following is a patch so you can do stuff like;
>
> (
> sleep 30
> echo -n "do something^M"
> sleep 1
> echo -n "~.^M"
> sleep 1
> ) | tip host | analyze_results
>
> in a shell script, for doing automatic slip dialup, etc.
> Mostly just ditches the check for isatty(0), and tries
> to pass on SIGPIPE, in case tip is being piped into another
> command. Anyhow, it works for me...
This isn't a great idea, from a security standpoint.
if you want to do things like this, use 'expect', available
from ftp.cme.nist.gov.
cgd
------------------------------------------------------------------------------