Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<result>
  <started>1241756756376</started>
  <finished>1241756756390</finished>
  <duration>14</duration>
  <exitcode>0</exitcode>
  <output><![CDATA[
total 6729
-rw------- 1 jb       jb   1693752 2009-04-09 09:07 f9G0lWzx.tar.part
-rw-r--r-- 1 jb       jb         8 2009-03-27 18:27 gnome-session-manager
srwxr-xr-x 1 jb       jb         0 2009-03-26 10:56 gnome-system-monitor.jb.3619273851
drwxr-xr-x 2 jb       jb      1024 2009-04-23 08:43 hsperfdata_jb
drwxr-xr-x 2 jboss    java    1024 2009-04-17 12:46 hsperfdata_jboss
drwxr-xr-x 2 weblogic java    1024 2009-04-17 09:40 hsperfdata_weblogic
-rw-r--r-- 1 jb       jb       870 2009-03-26 10:59 jbi12672.zip
-rw-r--r-- 1 jb       jb       870 2009-03-26 10:59 jbi12673.zip
]]></output>
  <error><![CDATA[
]]></error>
</result>

...

No Format
started  - contains the execution start time in millis (System.currentTimeMillis() is used)
finished - contains the time the process execution finished in millis (System.currentTimeMillis() is used)
duration - the duration in millis the execution took
exitcode - the return code of the process (0 means all fine; != 0 means an error code)
output   - the contents of the output stream of the process
error    - the contents of the error stream of the process

Some words on the output and error stream contents. 
It may happen that some information at the very beginning will get lost depending on how 
fast the stream listeners are set up and how fast the executed process will push information to it.

...