Moxa Technologies 331 Manual do Utilizador Página 37

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 74
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 36
Moxa C Programmable RTU Controllers Managing the RTU Controllers
3-8
mm h dom mon dow user command
min hour date month week user command
0-59 0-23 1-31 1-12 0-6 (0 is Sunday)
The following example demonstrates how to use Cron.
How to use Cron to update the system time and RTC time every day at 8:00.
STEP1: Write a shell script named fixtime.sh and save it to /home/.
#!/bin/sh
ntpdate time.nist.gov
hwclock –-systohc
exit 0
STEP2: Change mode of fixtime.sh
#chmod 755 fixtime.sh
STEP3: Modify /etc/cron.d/crontab file to run fixtime.sh at 8:00 every day.
Add the following line to the end of crontab:
* 8 * * * root/homefixtime.sh
STEP4: Enable the cron daemon manually.
#/etc/init.d/cron start
STEP5: Enable Cron when the system boots up.
Add the following line in the file /etc/init.d/rc.local.
#/etc/init.d/cron start
Vista de página 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 73 74

Comentários a estes Manuais

Sem comentários