pwr has asked for the wisdom of the Perl Monks concerning the following question:
The actual question is printed after my input. Currently, the executed code in the wrapper is very simple:... Need to get 667kB of archives. After unpacking 3965kB will be used. y Do you want to continue? [Y/n/?] Writing extended state information... ...
To get the whole thing running, I pipe the output of aptitude into the wrapper: sudo aptitude install xyz | ./wrap.pl After playing around for a while now, I know that's a problem of buffering but I'm not sure how to bypass it.print $_ while (<STDIN>);
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I/O buffering problem
by pc88mxer (Vicar) on Feb 15, 2008 at 20:17 UTC | |
by pwr (Novice) on Feb 15, 2008 at 20:26 UTC | |
|
Re: I/O buffering problem
by hipowls (Curate) on Feb 15, 2008 at 20:22 UTC |