Re: Using crontab to update Debian
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.
On Wed, 10 Mar 1999, Paulo Henrique Baptista de Oliveira wrote:
<snip>
>
> I know that apt-get -d dist-upgrade ask yes, but how do I pipe to
> it. I tried apt-get -d dist-upgrade | y and doesnt work: y -> command
> not found
> Thanks, Paulo Henrique
> > Pipe yes to it.
>
>
> On Tue, 9 Mar 1999, Shaleh wrote:
>
> >
> > On 09-Mar-99 Paulo Henrique Baptista de Oliveira wrote:
> > > Hi Debian users,
> > > In my country (Brazil) I only have to pay one tax between 0:00
> and
> > > 6:00 AM independent of call time.
> > > I'm start thinking to get my home machine live at night and set
> crontab
> > > to use pon or wvdial (I have two account, one with pon and other
> with
> > > wvdial) and use /etc/ppp/ip-up.d/script_to_upgrade.
> > > Am I following the right path to solution?
> > > The script will be only:
> > > #!/bin/bash
> > > apt-get update
> > > apt-get dist-upgrade
> > > ?
> > > Have a nice day, Paulo Henrique
> > >
> > >
> >
> > Yes, except for the fact that the install needs you there to hit enter
> a few
> > times. Apt says "is this correct [Y/n]", "press enter to continue".
> The
> > packages scripts may ask you for info as well.
> >
> > A better solution may be to try and setup a mirror program and just
> grab
> > packages you are interested in (X, libc, dpkg, other essentials).
> >
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
Pardon me, but you have obviously mistaken me for someone who gives a
damn.
email galt@inconnu.isu.edu
Reply to: