Have you tried?:
$output = `echo 1 | command foo`;
In reply to Re: automatically giving user input to a command line
by BrowserUk
in thread automatically giving user input to a command line
by tfredett
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |