0
sudo shutdown -P
が私のPCをシャットダウンできることが確認されています。getoptsを使って自分のPCをシャットダウンできないのはなぜですか?
test(){
while getopts "s" arg
do
case $arg in
s)
sudo shutdown -P
;;
esac
done
}
なぜtest -s
が私のPCシャットダウンできないのですか?