Adjusting the system time, Setting the time manually, Adjusting the system time -9 – Moxa Technologies THINKCORE W341 User Manual

Page 38: Setting the time manually -9

Advertising
background image

ThinkCore W311/321/341 Linux User’s Manual

Managing Embedded Linux

3-9

192.168.3.127 – PuTTY

root@Moxa:/ect/rc.d/rc3.d# ls

S19nfs-common S25nfs-user-server S99showreadyled

S20snmpd S55ssh

S24pcmcia S99rmnologin

root@Moxa:/ect/rc.d/rc3.d# ln –s /home/tcps2-release S60tcps2

root@Moxa:/ect/rc.d/rc3.d# ls

S19nfs-common S25nfs-user-server S99rmnologin

S20snmpd S55ssh S99showreadyled

S24pcmcia S60tcps2

root@Moxa:/etc/rc.d/rc3.d#

KxxRUNFILE stands for

K: start the run file while linux shuts down or halts.

xx: a number between 00-99. Smaller numbers have a higher priority.

RUNFILE: the file name.
To remove the daemon, remove the run file from the

/etc/rc.d/rc3.d

directory by using the

following command:

#rm –f /etc/rc.d/rc3.d/S60tcps2

Adjusting the System Time

Setting the Time Manually

The W311/321/341 have two time settings. One is the system time, and the other is the RTC (Real

Time Clock) time kept by the W311/321/341’s hardware. Use the

#date

command to query the

current system time or set a new system time. Use

#hwclock

to query the current RTC time or set a

new RTC time.
Use the following command to query the system time:

#date

Use the following command to query the RTC time:

#hwclock

Use the following command to set the system time:

#date MMDDhhmmYYYY

MM = Month

DD = Date

hhmm = hour and minute

YYYY = Year

Use the following command to set the RTC time:

#hwclock –w

Write current system time to RTC

Advertising
This manual is related to the following products: