2009-12-21 Sancho Lerena <slerena@artica.es>

* util/tentacle_served: Fixed call to get_pid, using a width of
        * 300 cols.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2225 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-12-21 12:03:36 +00:00
parent 999fcfef3a
commit 400db17068
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-12-21 Sancho Lerena <slerena@artica.es>
* util/tentacle_served: Fixed call to get_pid, using a width of 300 cols.
2009-12-21 Ramon Novoa <rnovoa@artica.es>
* util/pandora_xml_stress.pl: Properly read agent_interval

View File

@ -33,6 +33,10 @@ else
fi
function get_pid {
# This sets COLUMNS to XXX chars, because if command is run
# in a "strech" term, ps aux don't report more than COLUMNS
# characters and this will not work.
COLUMNS=300
TENTACLE_PID=`ps -Af | grep "$TENTACLE_PATH$TENTACLE_DAEMON" | grep -v grep | tail -1 | awk '{ print $2 }'`
echo $TENTACLE_PID
}