Running “hello” on the em-1240-lx, Running “hello” on the em-1240-lx -11 – Moxa Technologies EM-1240-LX User Manual

Page 27

Advertising
background image

EM-1240-LX User’s Manual

Getting Started

2-11

Running “Hello” on the EM-1240-LX

To run the “Hello” program issue the following commands on the EM-1240-LX:

# chmod 755 hello

#./hello

The words “hello world” are printed on the screen.

ATTENTION

Be sure to calculate the amount of Flash Memory used by the User File System in the Flash
ROM. Use one of the following two commands to determine the amount of memory being used:

# df –k

or # df

If the flash memory is full, you will no longer be able to save data in Flash ROM. To free up
some memory, use the console cable to connect to the EM-1240-LX’s serial console terminal,
and then delete files from the Flash ROM.

Advertising