system("echo $password | foo -args file");