Test results for Linux

test_010020_example_ps_1

Test description

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

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy 

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>
  <line>
    <field>UID</field>
    <field>PID</field>
    <field>PPID</field>
    <field>C</field>
    <field>STIME</field>
    <field>TTY</field>
    <field>TIME</field>
    <field>CMD</field>
  </line>
  <line>
    <field>root</field>
    <field>683</field>
    <field>680</field>
    <field>0</field>
    <field>11:41:26</field>
    <field>pts/4</field>
    <field>0:00</field>
    <field>bash</field>
  </line>
  <line>
    <field>root</field>
    <field>763</field>
    <field>683</field>
    <field>0</field>
    <field>12:00:54</field>
    <field>pts/4</field>
    <field>0:00</field>
    <field>ps</field>
    <field>-f</field>
  </line>
</xmlfy>

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