[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: crontab - aclaracion



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Luis Amato wrote:
| 0 20 * * *  shutdown -h now   # nada !!!!!!!
| 0 20 * * * init 6          # tampoco
| 0 20 * * * "shut down ....." etc    # menos ......
|

Se me ocurre que pongas el path completo del shutdown, ejemplo de lo que
tendria crontab -e
- ---------------------
# asignar shell
SHELL=/bin/bash
# reporte por email de cualquier resultado
MAILTO=userx
# apagar a las 20 horas diario
0 20 * * * /sbin/shutdown -h now
- ---------------------

Con eso, los resultados te los manda al email del usuariox y vez posible
s errores, mas info en "man 5 crontab".

Saludos,

- --
Christian Frausto Bernal
http://www.conocimientopractico.com
http://www.conpra.com/cfrausto.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFBdea3n9a3KM4uVGwRAjTDAJ0dzh6i+nXrLXXGLohuT/8J14fv4ACdFKL1
26Pem0XkjhJUqdiHAeeFhH4=
=tOlG
-----END PGP SIGNATURE-----



Reply to: