[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using crontab to update Debian



On Wed, 10 Mar 1999, Kirk Hogenson wrote:

> Paulo Henrique Baptista de Oliveira wrote:
> >     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.
> 
> I think by "Pipe yes to it", he meant to use the "yes" program,
> which just prints "y\n" over & over & over ....
> 
> Like this:
> 
>   yes | apt-get -d dist-upgrade
> 
> Of course, this will only work if all of the questions apt-get asks
> require the answer "y".  But this may not be the case, since,
> according to Shaleh:

Erm,

apt-get -yfqq update
apt-get -dyfqq dist-upgrade

Is the best way to run it from cron, run it again without the options
during the day to install it

Jason


Reply to: