Luna-send
From WebOS101
Introduction
luna-send is a command-line tool accessible through the shell on the emulator and the device. luna-send can be used to perform any serviceRequest call that you could issue from an app.
Using luna-send
Here's an example of launching your app with additional parameters using luna-send:
try {
this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'launch',
parameters: {
id: 'com.rustyapps.gpxmapper',
params: {
openFile: fname
}
},
onFailure: this.viewFailed.bind(this), /* app missing */
onSuccess: function(){}
});
}
catch (e) {
}
can become just this (obviously, from the command line):
# luna-send -n 1 palm://com.palm.applicationManager/launch '{"id": "com.rustyapps.gpxmapper", "params": {"openFile": "/media/internal/someFile"}}'

