インポートするパイプ:stty:stdin:デバイスのioctlが不適切です。

インポートするパイプ:stty:stdin:デバイスのioctlが不適切です。
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端末を偽にし、入力を提供できます。adopspawn

#!/usr/bin/env expect
spawn -noecho adop -status
send "apps"
expect -ex "Enter the APPS password"
send "thepassword"

おすすめ記事