Messenger.sh

Hi, I’'m new to Jive, and it only took a few hours to install with msn and icq transports! Excellent work!

I downloaded the last daily build (jive_messenger_2005-09-22.tar.gz)

I (or at list i think) improved the messenger.sh script by adding start/stop functions

Hope you find it useful

– Beguin code –

START STOP FUNCTION

  1. fducloux@gmx.net 22.09.2005

JIVEPID=ps ax |grep jive |grep java |cut -d " " -f 2

echo $JIVEPID

case “$1” in

start)

if [ -z “$JIVEPID” ]

then

echo “Starting Jive messenger”

messenger_exec_command=“exec “$JAVACMD” -server $MESSENGER_OPTS -classpath “$LOCALCLASSPATH” -jar “$MESSENGER_LIB”/startup.jar”

eval $messenger_exec_command >/dev/null &

else

echo “Jive messenger already runing”

fi

;;

stop)

if [ -n “$JIVEPID” ]

then

echo “Shutting down Jive messenger”

kill $JIVEPID

else

echo “Jive messenger not runing”

fi

;;

*)

echo “Usage: $0 {start|stop}”

exit 1

;;

esac

/code

– End code –

and I also wrote some scripts to start/stop pymsn and pyicq.

and other script that start/stop jive messenger and transports

i’'m not sure if shoud I post them here.