Check de lycanobot
#1
Pour ceux qui utilisent lycanobot (la version originale en perl), voici un petit script bash à utiliser avec un crontab pour vérifier que le robot est bien lancé, et le relancer le cas échéant:

Code:
#!/bin/sh

###############################################################
# CONFIGURATION
###############################################################

# Path of the bot
LYCAPATH=/home/lycanobot/
# Name of the executable
LYCAPROG=lycanobot.pl

###############################################################
#                 DON'T EDIT ANYTHING BELOW                   #
###############################################################
PATH=/bin:/usr/bin:/usr/local/bin
cd $LYCAPATH
if [ `ps auwx | grep $LYCAPROG | grep -v -c grep` = 1 ]
   then
      exit    
fi
./$LYCAPROG
zeolia: tchat gratuit, sans inscription ni publicité
Merci de ne pas demander d'aide en MP
Away


Forum Jump:


Users browsing this thread: 1 Guest(s)