• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

HLStats für Counterstrike Source

HalliHallo,

habe folgendes Problem:

Starte die hltstats.pl unter /home/marcpm80/hlstats/
mit (./hlstats.pl &) &

HLStats starten und bleiben auch erstmal an. Nur wie lange ist glatt dem Zufall überlassen mal 2 Stunden mal 20.

Was kann ich tun, dass die anbleiben.

Hat jemand ne Idee ???

Grüße MarcPM80
 
A

Anonymous

Gast
mit einem simplen "&" bleibt der prozess auch nur so lange laufen, wie du per ssh eingeloggt bist, abhilfe schaffen hier nohup oder screen
 
Hallo,

Das ist ja das seltsame. Die Stats bleiben an und gehen meist innerhalb 24 Stunden wieder aus. :-(

Kannst Du mir sagen wie ich es machen muss
 
A

Anonymous

Gast
notfalls ein script erstellen, welche nach dem hlstats-prozess sucht, und wenn nicht gefunden direkt mak startet. HlStats stürzt gerne mal ab...musste ich auch schon feststellen....
 
Hallo,

denke ich bekomme das mit dem Script nicht hin.

Kannst DU mir da vielleicht helfen :) Das wäre sehr nett.
 
A

Anonymous

Gast
also da ich selbst hlstats selbt nicht mehr benutze, weiss ich nicht die entsprechenden parameter, schreib mal was der befehl
Code:
ps aux
für ne ausgabe bringt, wenn hlstats läuft
 
linux:/ # ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 680 68 ? S Jul14 0:06 init [3]
root 2 0.0 0.0 0 0 ? SN Jul14 0:03 [ksoftirqd/0]
root 3 0.0 0.0 0 0 ? S< Jul14 0:00 [events/0]
root 4 0.0 0.0 0 0 ? S< Jul14 0:00 [khelper]
root 9 0.0 0.0 0 0 ? S< Jul14 0:00 [kthread]
root 19 0.0 0.0 0 0 ? S< Jul14 0:00 [kacpid]
root 74 0.0 0.0 0 0 ? S< Jul14 0:00 [kblockd/0]
root 114 0.0 0.0 0 0 ? S Jul14 0:17 [pdflush]
root 115 0.0 0.0 0 0 ? S Jul14 0:15 [pdflush]
root 117 0.0 0.0 0 0 ? S< Jul14 0:00 [aio/0]
root 116 0.0 0.0 0 0 ? S Jul14 0:02 [kswapd0]
root 710 0.0 0.0 0 0 ? S Jul14 0:00 [kseriod]
root 1008 0.0 0.0 0 0 ? S< Jul14 0:01 [reiserfs/0]
root 2058 0.0 0.0 1468 400 ? S<s Jul14 0:00 /sbin/udevd -d
root 2076 0.0 0.0 0 0 ? S Jul14 0:00 [khpsbpkt]
root 2313 0.0 0.0 1496 372 ? Ss Jul14 0:00 /sbin/resmgrd
100 2326 0.0 0.1 3356 804 ? Ss Jul14 0:00 /usr/bin/dbus-d
root 3715 0.0 0.0 1456 300 ? S< Jul14 0:00 [hwscand]
root 4725 0.0 0.1 1852 724 ? Ss Jul14 0:01 /sbin/syslog-ng
root 4728 0.0 0.0 1600 388 ? Ss Jul14 0:00 /sbin/klogd -c
nobody 4741 0.0 0.0 1508 364 ? Ss Jul14 0:00 /sbin/portmap
root 4916 0.0 0.5 8812 2960 ? Ss Jul14 0:10 /usr/bin/perl /
root 4946 0.0 0.2 4384 1248 ? Ss Jul14 0:03 /usr/lib/postfi
root 5075 0.0 0.1 1736 656 ? Ss Jul14 0:00 /usr/sbin/cron
root 5112 0.0 0.2 9760 1048 ? Ssl Jul14 0:27 /usr/sbin/nscd
root 5139 0.0 0.3 4696 1604 ? Ss Jul14 0:08 /usr/sbin/sshd
root 5142 0.0 0.1 3756 916 ? Ss Jul14 0:34 /usr/sbin/hald
root 5199 0.0 0.0 1468 412 ? Ss Jul14 0:00 /usr/sbin/acpid
root 5293 0.0 0.1 2868 896 ? S Jul14 0:00 /usr/sbin/power
root 5346 0.0 0.1 1904 524 tty1 Ss+ Jul14 0:00 /sbin/mingetty
root 5347 0.0 0.1 1904 524 tty2 Ss+ Jul14 0:00 /sbin/mingetty
root 5348 0.0 0.1 1904 524 tty3 Ss+ Jul14 0:00 /sbin/mingetty
root 5349 0.0 0.1 1904 524 tty4 Ss+ Jul14 0:00 /sbin/mingetty
root 5350 0.0 0.1 1904 524 tty5 Ss+ Jul14 0:00 /sbin/mingetty
root 5351 0.0 0.1 1904 524 tty6 Ss+ Jul14 0:00 /sbin/mingetty
marcpm80 5705 0.0 0.3 25096 1948 ? SNl Jul14 24:58 ./server_linux
root 16114 0.0 0.2 2444 1140 ? S Jul18 0:00 /bin/sh /usr/bi
mysql 16148 0.0 1.4 59532 7504 ? Sl Jul18 21:55 /usr/sbin/mysql
postfix 16361 0.0 0.2 4776 1276 ? S Jul18 0:00 qmgr -l -t fifo
root 21332 0.0 1.6 23968 8420 ? Ss Aug01 0:04 /usr/sbin/httpd
root 25615 0.0 0.2 2952 1240 ? Ss Aug02 0:02 SCREEN -d -m -S
root 25616 0.0 0.2 2704 1276 pts/1 Ss+ Aug02 0:00 /bin/sh /home/m
root 25631 26.2 25.8 204020 131568 pts/1 S+ Aug02 613:34 ./srcds_amd -ga
wwwrun 28074 0.0 2.2 25748 11288 ? S Aug03 0:05 /usr/sbin/httpd
root 28346 0.0 1.2 9240 6600 ? S Aug03 0:39 /usr/bin/perl .
wwwrun 28603 0.0 2.2 26024 11560 ? S Aug03 0:05 /usr/sbin/httpd
wwwrun 28650 0.0 2.2 25712 11236 ? S Aug03 0:03 /usr/sbin/httpd
wwwrun 28652 0.0 2.3 26188 11724 ? S Aug03 0:03 /usr/sbin/httpd
wwwrun 28700 0.0 2.3 26320 11848 ? S Aug03 0:02 /usr/sbin/httpd
wwwrun 28795 0.0 2.2 25728 11220 ? S Aug03 0:01 /usr/sbin/httpd
wwwrun 29049 0.0 2.2 25724 11236 ? S Aug03 0:02 /usr/sbin/httpd
wwwrun 29061 0.0 2.2 26032 11548 ? S Aug03 0:03 /usr/sbin/httpd
wwwrun 29428 0.0 2.1 25636 11120 ? S Aug03 0:00 /usr/sbin/httpd
wwwrun 29429 0.0 2.1 25624 11088 ? S Aug03 0:00 /usr/sbin/httpd
postfix 32012 0.0 0.2 4740 1384 ? S 11:29 0:00 pickup -l -t fi
root 32253 0.2 0.4 8140 2332 ? Ss 12:55 0:00 sshd: root@pts/
root 32256 0.7 0.3 3044 1744 pts/3 Ss 12:55 0:00 -bash
root 32273 0.0 0.1 2720 808 pts/3 R+ 12:55 0:00 ps aux
linux:/ #
 
A

Anonymous

Gast
stopp doch mal hlstats, und mach dann ein
Code:
ps aux | grep /usr/bin/perl
wenn nichts kommt, dann is das hlstats, und dann kann ich auch das script machen
 
linux:~ # killall hlstats.pl
linux:~ # ps aux | grep /usr/bin/perl
root 4916 0.0 0.6 8812 3168 ? Ss Jul14 0:10 /usr/bin/perl / usr/webmin/miniserv.pl /etc/webmin/miniserv.conf
root 32641 0.0 0.1 1824 632 pts/3 S+ 15:47 0:00 grep /usr/bin/p erl
linux:~ #
 
A

Anonymous

Gast
bäh...jetzt haste sogar noch noch webmin am laufen, naja egal:

Code:
netstat -tulpe | grep "hlstats.pl"
check=$?
[ check -eq 0 ] && exit 0 || /PFAD/ZUM/HLSTATS
das dann in eine datei schreiben, und diese per

Code:
crontab -e
in die crontab eintragen, ein
Code:
0 */1 * * * /PFAD/ZUR/NEUEN/DATEI
würde das script einmal alle 60 min laufen lassen, wenn es bereits läuft, sorgt "exit 0 " dafür, dass es nicht nochmal gestartet wird
 
Wärst Du mir böse wenn ich das jetzt noch net so richtig verstanden habe, wie ich da was machen muss ^^

Grüße Marc
 
A

Anonymous

Gast
was gibts da ned zu verstehen???
abtippen, in eine datei speichern, fertich :!:
Also wenn du nedmal das kannst, dann solltest besser ned mit Linux hantieren, Unix is ein extrem komplexes OS, primär für Entwickler/Geeks gedacht, nix für den PrivatGebrauch
 
Oben