[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Überprüfen ob ein S cript schon läuft



Hey Thomas,   :-D

Am 2005-03-15 22:11:20, schrieb Thomas Antepoth:
> Hallole

> Huh? "wc -l" im Hause erspart den Aufruf vom "awk" - Das erwärmt mein 
> kaltes Schwabenherz! :-)

:-)

> Aber auch hier wieder der gleiche Effekt:

<blahblah>

> isrunning=`echo "$s" | grep \`basename $0\` | grep -v grep | wc -l`

> Andere Programme - gleicher Effekt.

Warum machste eigentlich alles so kompliziert ?

:-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-) :-)

isrunning=`pstree | grep \`basename $0\` | wc -l`

Reicht vollkommen aus und braucht keine millionen Kindprozesse

Uah.... habe ich jetzt rumgemacht :-)

Probiers aus  :-)
Vor allem sieh Dir mal die Ausgabe von

    pstree | grep `basename $0`

an...

<http://michelle.konzack.home.tamay-dogan.homelinux.net/tmp/20050315231355.jpg>

> Mit freundlichem Grinsen :-)
> 
> 
> Thomas Antepoth

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: