1
実行を一時停止し、ユーザー入力を待つ
作成中のスクリプトがあり、問題があります。実行を一時停止し、ユーザーの入力を待ちたいです。私はread -p -n 1 $fooコマンドでそれを持っていると思ったが、システムはこのコマンドで問題を抱えている。現在のスクリプトは次のとおりです。 #!/bin/sh # Ititialization mainmenu () { echo "Press 1 to update your system" echo "Press 2 to install samba" echo "Press 3 to install vsFTPd" echo "Press 4 to install the current version of Webmin" echo "Press 5 to configure samba for Active Directory" echo …
29
bash