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

Re: Bug#42284: apt: apt-get -qy dselect-upgrade won't run in the background




On Sun, 1 Aug 1999, Simon Richter wrote:

> I'm one of two administrators for a small Debian box. To keep each other
> informed, we post small notes about package installations/removals to a
> list; however, when one of us is doing some cleanup using dselect, the
> changes are far too many to memorize, and so I use the following commands:
> 
> apt-get -qy dselect-upgrade >instlog 2>&1 & (sleep 1; tail -f instlog)
> 
> However, nothing happens then, and when I Ctrl-C tail, I get a message
> stating that apt-get had been suspended because it expected tty input.
> Running it in the foreground with output redirected works fine without
> asking any questions, though.

DPKG cannot be run with input and output redirected - it will prompt for
user input and other things. Most likely when you ran it again in the
forground you just got lucky and there was no prompting.

The best thing to do is to run apt-get -qsy and use that for your log
message.

Jason


Reply to: