EM-1240-LX User’s Manual

Getting Started

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.

2-11

Page 27
Image 27
Moxa Technologies user manual Running Hello on the EM-1240-LX, # chmod 755 hello #./hello