Test results for Solaris x86

test_010021_example_ps_2

Test description

Test for correct functionality of the examples used in the xmlfy documentation.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -l -f

Input data

     UID   PID  PPID   C    STIME TTY         TIME CMD
    root   683   680   0 11:41:26 pts/4       0:00 bash
    root   763   683   0 12:00:54 pts/4       0:00 ps -f

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xmlfy SYSTEM "xmlfy.dtd">
<xmlfy>
  <line1>
    <field1>UID</field1>
    <field2>PID</field2>
    <field3>PPID</field3>
    <field4>C</field4>
    <field5>STIME</field5>
    <field6>TTY</field6>
    <field7>TIME</field7>
    <field8>CMD</field8>
  </line1>
  <line2>
    <field1>root</field1>
    <field2>683</field2>
    <field3>680</field3>
    <field4>0</field4>
    <field5>11:41:26</field5>
    <field6>pts/4</field6>
    <field7>0:00</field7>
    <field8>bash</field8>
  </line2>
  <line3>
    <field1>root</field1>
    <field2>763</field2>
    <field3>683</field3>
    <field4>0</field4>
    <field5>12:00:54</field5>
    <field6>pts/4</field6>
    <field7>0:00</field7>
    <field8>ps</field8>
    <field9>-f</field9>
  </line3>
</xmlfy>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".