bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument
私もこれを試しましたが、stty -ixon;echo "apps" | adop -status
同じエラーが発生しました。
ベストアンサー1
次のプロセスにより、expect
端末を偽にし、入力を提供できます。adop
spawn
#!/usr/bin/env expect
spawn -noecho adop -status
send "apps"
expect -ex "Enter the APPS password"
send "thepassword"