>>725
じゃ、標準入力の入力が必要なコマンドをシェルスクリプト内で動かす時にどうやって実現するの?

仮にこんなスクリプトの場合は?

#/bin/sh
passwd usera
passwd userb