Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tcf-dev] IProcesses.start() not working

 

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


Back to the top