A.1.3: Update and Install a New Application
Rev 3 9/21/17
42
41110479
4.
Compile the application.
$ make wp85
5.
Verify that the update file helloWorld.wp85.update was created:
$ ls -al
6.
Install the application on the target:
$ app install helloWorld.wp85.update 192.168.2.2
Log in to the target and run the application:
1.
Set up a window to show the application’s output (the "Hello World" application writes to a log file) as follows:
a.
Open a new terminal window (referred to as LOG_TERM in this procedure).
b.
Connect to the target:
$ ssh [email protected]
c.
Watch the log file and show when a message from "hello world" appears:
# logread -f | grep "Hello"
2.
Run the application:
a.
Open a terminal window to run the application (referred to as APP_TERM in this procedure).
Note:
This ’make’ command uses the Makefile in the current directory to build only the sample application. It does not
build the entire system like the ’make’ command in
Update an Installed Application on page 38
Note:
This application will remain on the target until you either specifically remove it, or until the next time you reinstall
the system on the target.
Note:
Nothing will appear to happen until you run the Hello World application in the next step. Leave this
command running until after you see the Hello World output, then you can press Ctrl+C to cancel it and return to
the command prompt.