Re: Using crontab to update Debian
On Wed, Mar 10, 1999 at 11:43:50PM -0700, John Galt wrote:
>
> There is a holdover command from Berkely Unix called "yes" used almost
> exclusively in scripting--what it does is continuously applies yes^M (the
> ^M is a representation of the return key) [wups--apparently it replies
> only y now] while it's active. So what your script line
> would be is yes | apt-get -d dist-upgrade,
> thus the script can run an interactive program relatively
> non-interactively. The only caveat here is it will ONLY reply yes^M
> There is also a command called no for when you wish to reply no to any
> input.
actually, you can type anything after yes and it will continuously
output that string. ie:
$ yes no
no
no
no
...
rcy
Reply to: