salut,

rien de plus simple...

créer un sript qui permet de lancer les sessions de seti... et à mettre dans /usr/bin 
par exemple...

puis mettre le non du fichier script dans et à la fin du fichier /etc/rc.local


et vla...

 exemple de petit script à configurer avec ses propres paramêtres et améliorer...





#!/bin/sh
#
# Seti command control.  Written by MORIN Bruno, 2003/01/30   Version : 1.0 ;-^)
# 
#
# |||||||||||||||||||| START CONFIGURATION SECTION  ||||||||||||||||||||
# --------------------                              --------------------
#  
SETI1=/home/bruno/Prog/Seti1     
SETI2=/home/bruno/Prog/Seti2
SETI3=/home/bruno/Prog/Seti3
SETI4=/home/bruno/Prog/Seti4
#
#||||||||||||||||||||| END CONFIGURATION SECTION  ||||||||||||||||||||||
#------------------------------------------------------------------------

case $@ in
start)
 cd $SETI1;  #reste à supprimer les messages à la noix : nohup pff..
 nohup ./setiathome  & >/dev/null
 cd $SETI2;
 nohup ./setiathome  & >/dev/null
 cd $SETI3;
 nohup ./setiathome  & >/dev/null
 cd $SETI4;
 nohup ./setiathome  & >/dev/null
 echo "seti : start [ok]"
;;
startx)
 cd $SETI1;  #reste à supprimer les messages à la noix
 nohup ./setiathome -graphics & >/dev/null
 cd $SETI2;
 nohup ./setiathome  & >/dev/null
 cd $SETI3;
 nohup ./setiathome  & >/dev/null
 cd $SETI4;
 nohup ./setiathome  & >/dev/null
 echo "seti : startx [ok]"
 ;;

stop)
 kill `ps aux | grep setia | grep -v grep | awk '{print $2}'`
 echo "seti : stop [ok]"
;;
status)
 ps aux | grep setia | grep -v grep | awk '{n++} {if ($2) print "Seti",n, "pid :", $2, 
"en cours d''execution..."} END {if (!$2) print "Seti est arreté..."}'
;;
state)
if [ -f  $SETI1/state.sah ] ; then
cat $SETI1/state.sah |grep prog |grep -v grep | awk '{print "Seti1 : ",$1}';
else echo "Seti1 :  Processing finished"
fi
if [ -f  $SETI2/state.sah ] ; then
cat $SETI2/state.sah |grep prog |grep -v grep | awk '{print "Seti2 : ",$1}';
else echo "Seti2 : Processing finished"
fi
if [ -f  $SETI3/state.sah ] ; then
cat $SETI3/state.sah |grep prog |grep -v grep | awk '{print "Seti3 : ",$1}';
else echo "Seti3 : Processing finished"
fi
if [ -f  $SETI4/state.sah ] ; then
        cat $SETI4/state.sah |grep prog |grep -v grep | awk '{print "Seti4 : ",$1}';   
else echo "Seti4 : Processing finished"
fi

;;
show)
 cd $SETI1;
  nohup ./xsetiathome &
   echo "seti : interface [ok]"
;;
*)
echo "usage: seti (start|startx|stop|status|state|show)"
cat <<EOF

start   - start all seti's instances...
startx  - start all seti's instances with data for graphic interface.
stop    - stop all seti's instances.
status  - give the pid process of all instances.
state   - give the progression of all seti's instances.
show    - show the graphic interface.
help    - this screen

EOF
;;   
esac



#fin du script  attention avec ça pour démmarer mettre dans rc.local :     seti start

faire : seti stop     puis         init 1    puis init 5       puis     seti status   
.....:-))



je n'ai pas de bi-tri-quadri-proc...:^))

have fun..



On Mon, 23 Jun 2003 09:11:04 +0200
"Joez" <[EMAIL PROTECTED]> wrote:

> Bonjour, voila j'utilise le seti en ligne de commande sur mon bi CPU
> 
> la je le lance deux fois manuellement en ligne de commande
> 
> j'ai deux repertoire
> SETI 1 et SETI2
> 
> un pour chaque CPU
> 
> je fais ./setiathome pour le lancer
> 
> comment faire pour kill soit lancer automatiquement au lancement de mon
> serveur ?
> 
> Merci
> 
> 
> 
> 



Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";.

Foire Aux Questions de la liste : http://mdk.mondelinux.org

Reply via email to