Why don't you try to use the Perl module for Sudo integration?
At least you would avoid the system call (and probably) the problem with stty (but I'm not sure about that).
In reply to Re: stty: standard input: Invalid argument
by glasswalk3r
in thread stty: standard input: Invalid argument
by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |