Show Weblogic Process

Show Weblogic Process

  • Main idea: To grep the key "Dweblogic.Name" and "java" to filter the weblogic processes and get the value after "Dweblogic.Name".
#!/bin/bash
for name in `ps -ef | grep java`
do
   echo $name | grep Dweblogic.Name | awk -F '=' '{print $2}'
done

這個網誌中的熱門文章

Bash判斷參數是否存在

Node.js package : forever