[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tcf-dev] IProcesses.start() not working
|
Prasad,
I am not sure about the java part, but at least with python, you have to
register (subscribe) a StreamListener for the "ProcessesV1" type.
You may have a look at the python sources : tcf/tests/ProcessStart.py
Hope this helps
DERF
On 06/15/2017 10:46 PM, Nair, Prasad wrote:
Hello,
I am trying to invoke a remote process on the target device from my host
machine. The message says the process was started without any errors ,
but my remote process is supposed to generate an output file. That’s not
getting generated.
String arg_array[] = { "-l" ,">", "LSOUTPUT.txt" };
serv.start("/myname/lsexample", "ls", arg_array,
*null*, *false*, *new* IProcesses.DoneStart() {
IStreams streamsService;
@Override
*public* *void* doneStart(IToken token, Exception error, ProcessContext
process) {
*if* (error == *null*) {
System.out.println("Newly started process: " + process.getName() + " " +
process.getID());
System.out.println("IProcesses service: [start] test ok.\n");
} *else*
System.out.println("ls invoke fail ! Error from agent:" +
error.getMessage());
}
});
But I don’t see a LSOUTPUT.txt file generated. I get this in the output
Newly started process: -l P1089
IProcesses service: [start] test ok.
Why is it saying –l as for process.getName() it should be “ls” instead.
Any idea why that’s happening ?
Thanks,
Prasad
_______________________________________________
tcf-dev mailing list
tcf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tcf-dev