meisonman
Colaborador
- Registrado
- 9 Abr 2012
- Mensajes
- 215
- Reacciones
- 0
- Puntos
- 79
Muy buenas, no se si esto debe ir aqui pero bueno, si molesta me lo de decis y ningun problema.
Bueno ahi voy:
quiero editar un par de scripts para el cron (Reboot y standby) de hecho ya los he activado dese el blue panel (azul/azul/Cron Manager) , pero me voy a la ruta: /usr/lib/enigma2/python/Plugins/Extensions/LDteam/scripts
miro los scripts y me pone esto:
Reboot:
#!/bin/sh
#DESCRIPTION=This script Reboot the box
wget -q -O - http://127.0.0.1/web/powerstate?newstate=2
echo ""
exit 0
Standby:
#!/bin/sh
#DESCRIPTION=Script Stanby
wget -q -O - http://127.0.0.1/web/powerstate?newstate=5
echo ""
exit 0
Y creo recordar que no era asi, sino asi:
reboot.sh
#!/bin/sh
wall "Cronmanager called reboot"
echo "Rebooting Dreambox - Good bye !"
shutdown -r now
exit 0
standby.sh
#!/bin/sh
#!/bin/sh
wall "Cronmanager called standby"
echo "Turning OFF Dreambox - Good bye !"
wget -q -O - h**p://root:tupass@ipdeladm/web/powerstate?newstate=0
exit 0
Y luego hay que editar el archivo /etc/cron el cual tenemos pone esto:
30 * * * * /usr/bin/ntpdate-sync silent
Y si no me equivoco deberia quedar asi:
30 * * * * /usr/bin/ntpdate-sync silent
45 03 * * * * /etc/cron/examples/reboot.sh
00 04 * * * * /etc/cron/examples/standby.sh
Y claro lo que quiero es reboot a las 03:45 y standby 04:00.
No se si lo hago bien o no por eso pido un pokillo de ayuda.
Un saludo.
Bueno ahi voy:
quiero editar un par de scripts para el cron (Reboot y standby) de hecho ya los he activado dese el blue panel (azul/azul/Cron Manager) , pero me voy a la ruta: /usr/lib/enigma2/python/Plugins/Extensions/LDteam/scripts
miro los scripts y me pone esto:
Reboot:
#!/bin/sh
#DESCRIPTION=This script Reboot the box
wget -q -O - http://127.0.0.1/web/powerstate?newstate=2
echo ""
exit 0
Standby:
#!/bin/sh
#DESCRIPTION=Script Stanby
wget -q -O - http://127.0.0.1/web/powerstate?newstate=5
echo ""
exit 0
Y creo recordar que no era asi, sino asi:
reboot.sh
#!/bin/sh
wall "Cronmanager called reboot"
echo "Rebooting Dreambox - Good bye !"
shutdown -r now
exit 0
standby.sh
#!/bin/sh
#!/bin/sh
wall "Cronmanager called standby"
echo "Turning OFF Dreambox - Good bye !"
wget -q -O - h**p://root:tupass@ipdeladm/web/powerstate?newstate=0
exit 0
Y luego hay que editar el archivo /etc/cron el cual tenemos pone esto:
30 * * * * /usr/bin/ntpdate-sync silent
Y si no me equivoco deberia quedar asi:
30 * * * * /usr/bin/ntpdate-sync silent
45 03 * * * * /etc/cron/examples/reboot.sh
00 04 * * * * /etc/cron/examples/standby.sh
Y claro lo que quiero es reboot a las 03:45 y standby 04:00.
No se si lo hago bien o no por eso pido un pokillo de ayuda.
Un saludo.