User's Manual

Doc #: 1ANSU-160004
DNI SGDC-D22 User Manual
i. 14
5. The First Program
5.1. Compile helloworld.c
Use cross compiler at host to compile the program for data collector.
Use “file” command to check the program after compiling.
# arm-linux-gcc helloworld.c -o helloworld
# file helloworld
Result:
5.2. Send Files to Data Collector
Use “scp” command at host to send the file to data collector.
# scp helloworld root@192.168.1.10:/var
Result:
5.3. Execute Program at Data Collector
Execute the program at the data collector.
Result: