title: What does ps h -fwC do?
body: <p>How can I understand this part of script? Invoking <code>ps h -fwC ifmFuseHandler</code> gives this output:</p>
  
  <pre><code>DRBimg:/tmp # ps h -fwC ifmFuseHandler
  insite1  29149     1  0 11:57 ?        Ssl    0:00 ifmFuseHandler -o allow_other /opt/insiteone/fuse-mount
  </code></pre>
  
  <p>I am particularly interested in what condition the ifmFuseHandler starts?</p>
  
  <p>Here is the complete script (some excerpt form):</p>
  
  <pre><code> # START IFM
          if [ $MYTYPE = "ifmFuseHandler" -o $MYTYPE = "ALL" ]
          then
              # IF A PROXY
              if [ $PROXY -eq 0 -a $DOIFM -eq 1 ]
              then
                  # Make sure the fuse module is loaded
                  FUSE=`lsmod | grep fuse`
                  ret=$?
                  if [ $ret -ne 0 ]
                  then
                          /sbin/modprobe fuse 2&gt;/dev/null
                  fi
                  FOUND=1
                  #PID=`df | awk '/ifmFuseHandler/ {print $1}'`
                  #PID=`ps -ef | grep -v 'awk' | awk '/ifmFuseHandler/ { print$2 }'`
                  PID=`ps h -fwC ifmFuseHandler | awk '/ifmFuseHandler/ { print$2 }'`
                  if [ "x$PID" = x ]; then
                      msg "Starting ifmFuseHandler..." $MSG_ALL
                      su - $USER -c "cd $DIR_INDEX;ifmFuseHandler  $IFM_SINGLE_THREAD -o allow_other $IFM_MOUNT"
                  else
                      msg "ifmFuseHandler already running! PID=$PID" $MSG_ALL
                  fi
              fi
          fi
  </code></pre>