Autoflush is something you do in your program, to control the output of your program , not something you can do to other programs
Other than changing your invocation (sudo ... ) there is nothing you can do
You say sudo ... works from bash, but does sudo ... |perl -pe 1 work the same?
In reply to Re^3: Autoflush fails
by Anonymous Monk
in thread Autoflush fails
by sophate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |