ho provato a mettere il comando
shutdown -h now
nel crontab ma il sistema non si arresta.
Come faccio a schedulare un shutdown (ad esempio ogni sabato sera alle 20:00)?
ho provato a mettere il comando
shutdown -h now
nel crontab ma il sistema non si arresta.
Come faccio a schedulare un shutdown (ad esempio ogni sabato sera alle 20:00)?
S'i fosse foco, arderei 'l mondo
ho provato anche
init 0
telinit 0
shutdown -h +1
da shell funzionano, ma il crond non li esegue.
Uso RedHat 9
S'i fosse foco, arderei 'l mondo
Il crond con che utente gira???
RTFM.
Pessimismo e fastidio.
nel mio crontab ho che ogni giorno alle 23 deve spegnersi il pc con uno 'shutdown -h now' e funziona tutto benissimo...
da root
crontab -e
e aggiungi:
00 23 # # # /sbin/halt (oppure shutdown) se vuoi spegnerlo tutti i giorni alle 23
![]()