Beste mensen,
Ik heb een script waarin 't shutdown command staat. Als ik dit script aanroep vanuit de shell, werkt 't gewoon en sluit de computer netjes af. Als ik dit script wil aanroepen vanuit de crontab, word 't script wel aangeroepen, maar sluit de computer niet af. Enig idee hoe dit komt?
Hier de inhoud van 't script.
du -hs "Shell Programming in 24 Hours.pdf"|cut -c 1,2,3 > shutdown.log
cat shutdown.log|while read a
do
if [ $a == 5.2 ]
then
cd /sbin
./shutdown -P now
fi
done