Here is the output. Sorry it's not wrapped. But it is a dump of my server while the quake3 server is running. It is process 6753. Thanks for your help. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 1336 476 ? S Jan05 0:04 init root 2 0.0 0.0 0 0 ? SW Jan05 0:00 [keventd] root 3 0.0 0.0 0 0 ? SW Jan05 0:08 [kapmd] root 4 0.0 0.0 0 0 ? RWN Jan05 0:00 [ksoftirqd_CPU0] root 5 0.0 0.0 0 0 ? SW Jan05 0:06 [kswapd] root 6 0.0 0.0 0 0 ? SW Jan05 0:00 [bdflush] root 7 0.0 0.0 0 0 ? SW Jan05 0:00 [kupdated] root 8 0.0 0.0 0 0 ? SW Jan05 0:00 [mdrecoveryd] root 14 0.0 0.0 0 0 ? SW Jan05 0:00 [scsi_eh_0] root 17 0.0 0.0 0 0 ? SW Jan05 0:19 [kjournald] root 73 0.0 0.0 0 0 ? SW Jan05 0:00 [khubd] root 203 0.0 0.0 0 0 ? SW Jan05 0:00 [kjournald] root 204 0.0 0.0 0 0 ? SW Jan05 0:00 [kjournald] root 205 0.0 0.0 0 0 ? SW Jan05 0:00 [kjournald] root 206 0.0 0.0 0 0 ? SW Jan05 0:00 [kjournald] root 207 0.0 0.0 0 0 ? SW Jan05 0:01 [kjournald] root 465 0.0 0.0 0 0 ? SW Jan05 0:00 [eth0] root 516 0.0 0.1 2060 1028 ? S Jan05 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0 root 581 0.0 0.0 0 0 ? SW Jan05 0:00 [eth1] root 626 0.0 0.0 1400 540 ? R Jan05 0:03 syslogd -m 0 root 630 0.0 0.0 1336 428 ? S Jan05 0:00 klogd -x rpc 647 0.0 0.0 1484 572 ? S Jan05 0:00 portmap rpcuser 666 0.0 0.1 1748 820 ? S Jan05 0:00 rpc.statd root 732 0.0 0.0 1328 472 ? S Jan05 0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-scripts/apmscript named 769 0.0 0.3 10896 2844 ? S Jan05 0:05 named -u named root 785 0.0 0.1 3276 1464 ? S Jan05 0:01 /usr/sbin/sshd lp 815 0.0 0.1 4888 1516 ? S Jan05 0:00 lpd Waiting root 843 0.0 0.3 5060 2380 ? S Jan05 0:01 sendmail: accepting connections root 858 0.0 1.3 13860 10452 ? S Jan05 0:00 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner conf root 869 0.0 0.0 1372 432 ? S Jan05 0:01 gpm -t imps2 -m /dev/mouse root 880 0.0 1.0 17400 7980 ? S Jan05 0:02 /usr/sbin/httpd root 889 0.0 0.0 1524 620 ? S Jan05 0:00 crond xfs 920 0.0 0.5 5128 3960 ? S Jan05 0:03 xfs -droppriv -daemon root 929 0.0 0.2 4944 1832 ? S Jan05 0:00 smbd -D root 933 0.0 0.2 3788 1612 ? S Jan05 0:06 nmbd -D daemon 951 0.0 0.0 1368 520 ? S Jan05 0:00 /usr/sbin/atd uucp 961 0.0 0.2 5744 2056 ? S Jan05 0:00 faxq uucp 965 0.0 0.2 3696 1588 ? S Jan05 0:00 hfaxd -i hylafax root 980 0.0 0.0 3108 536 ? S Jan05 0:00 rhnsd --interval 120 root 986 0.0 0.0 1316 404 tty2 S Jan05 0:00 /sbin/mingetty tty2 root 987 0.0 0.0 1316 404 tty3 S Jan05 0:00 /sbin/mingetty tty3 root 988 0.0 0.0 1316 404 tty4 S Jan05 0:00 /sbin/mingetty tty4 root 989 0.0 0.0 1316 404 tty5 S Jan05 0:00 /sbin/mingetty tty5 root 990 0.0 0.0 1316 404 tty6 S Jan05 0:00 /sbin/mingetty tty6 uucp 991 0.0 0.2 3892 1996 ? S Jan05 0:00 /usr/sbin/faxgetty ttyS4 apache 994 0.0 1.0 17532 8232 ? S Jan05 0:00 /usr/sbin/httpd apache 995 0.0 1.0 17532 8228 ? S Jan05 0:00 /usr/sbin/httpd apache 996 0.0 1.0 17532 8232 ? S Jan05 0:00 /usr/sbin/httpd apache 997 0.0 1.0 17536 8232 ? S Jan05 0:00 /usr/sbin/httpd apache 998 0.0 1.0 17532 8228 ? S Jan05 0:00 /usr/sbin/httpd apache 999 0.0 1.0 17536 8236 ? S Jan05 0:00 /usr/sbin/httpd apache 1000 0.0 1.0 17532 8224 ? S Jan05 0:00 /usr/sbin/httpd apache 1001 0.0 1.0 17532 8220 ? S Jan05 0:00 /usr/sbin/httpd root 4724 0.0 0.2 5412 2112 ? S Jan05 0:00 oafd --ac-activate --ior-output-fd=10 apache 13085 0.0 1.0 17532 8220 ? S Jan09 0:00 /usr/sbin/httpd smmsp 8745 0.0 0.2 4876 2148 ? S Jan10 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue root 13842 0.0 0.2 2588 1604 ? S Jan10 0:00 /usr/sbin/dhcpd eth1 root 14388 0.0 0.1 2096 912 ? S Jan10 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid root 29943 0.0 1.4 14320 11056 ? S 06:46 0:00 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner conf root 32267 0.0 1.4 14112 10848 ? S 08:37 0:00 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner conf root 435 0.0 0.1 2292 1220 ? S 09:09 0:00 login -- thom thom 914 0.0 0.1 4136 1404 tty1 S 09:31 0:00 -bash thom 1027 0.0 0.1 3820 1056 tty1 S 09:32 0:00 /bin/sh /usr/X11R6/bin/startx thom 1039 0.0 0.0 2292 592 tty1 S 09:32 0:00 xinit /etc/X11/xinit/xinitrc -- root 1040 15.1 2.1 55972 16824 ? S< 09:32 41:10 X :0 thom 1043 0.0 1.0 16480 8368 tty1 S 09:32 0:00 /usr/bin/gnome-session thom 1051 0.0 0.0 0 0 tty1 Z 09:32 0:00 [xinitrc <defunct>] thom 1052 0.0 0.1 2900 992 ? S 09:32 0:00 ssh-agent /etc/X11/xinit/Xclients thom 1059 0.0 0.6 8328 4864 tty1 S 09:32 0:00 /usr/libexec/gconfd-2 9 thom 1061 0.0 0.3 5936 2376 ? S 09:32 0:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=14 thom 1063 0.0 0.8 11984 6340 ? S 09:32 0:00 metacity --sm-save-file 1041789965-1114-4241269345.ms thom 1065 0.0 0.9 16336 7224 ? S 09:32 0:00 gnome-settings-daemon --oaf-activate-iid=OAFIID:GNOME_SettingsDaemon --oaf-ior-fd=12 thom 1067 0.0 0.1 2616 1268 ? S 09:32 0:00 fam thom 1072 0.0 0.2 2904 1676 ? S 09:32 0:00 esd -terminate -nobeeps -as 2 -spawnfd 22 thom 1074 0.0 0.2 3656 1876 ? S 09:32 0:00 xscreensaver -nosplash thom 1077 2.5 0.7 15064 6088 ? R 09:32 6:58 magicdev --sm-config-prefix /magicdev-Jnh7Dw/ --sm-client-id 111864ea2d000104173921700000010940001 thom 1079 0.0 1.8 34520 14360 ? S 09:32 0:02 nautilus --sm-config-prefix /nautilus-kJnHKZ/ --sm-client-id 111864ea2d000104173922100000010940003 --no-default-window thom 1081 0.2 1.4 18516 10860 ? S 09:32 0:40 gnome-panel --sm-config-prefix /gnome-panel-CM4tbw/ --sm-client-id 111864ea2d000104173921700000010940002 --profile default thom 1083 0.0 0.5 10864 4100 ? S 09:32 0:00 /usr/bin/pam-panel-icon --sm-client-id 111864ea2d000104173922100000010940004 thom 1085 0.0 2.1 25504 16732 ? S 09:32 0:15 /usr/bin/python /usr/bin/rhn-applet-gui --sm-config-prefix /rhn-applet-GfVh1v/ --sm-client-id 111864ea2d000104173923100000010940005 root 1086 0.0 0.0 1368 480 ? S 09:32 0:00 /sbin/pam_timestamp_check -d root thom 1092 0.0 0.9 15576 7236 ? S 09:33 0:00 /usr/libexec/drivemount_applet2 --oaf-activate-iid=OAFIID:GNOME_DriveMountApplet_Factory --oaf-ior-fd=18 thom 1099 0.0 0.9 15636 7164 ? S 09:33 0:12 /usr/libexec/multiload-applet-2 --oaf-activate-iid=OAFIID:GNOME_MultiLoadApplet_Factory --oaf-ior-fd=20 root 1493 0.0 1.4 14104 10840 ? S 09:53 0:00 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner conf root 1610 0.0 0.0 1524 660 ? S 09:59 0:00 CROND root 1613 0.0 0.1 1988 880 ? S 09:59 0:00 /bin/sh -c cd /root/seti; ./setiathome -nice 19 > /dev/null 2> /dev/null root 1614 62.5 1.8 15652 14084 ? RN 10:00 153:10 ./setiathome -nice 19 root 4678 0.0 1.4 14112 10848 ? S 12:28 0:00 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner conf root 6659 0.0 1.3 13968 10560 ? S 14:01 0:00 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner conf thom 6682 2.0 1.1 17760 8968 ? S 14:04 0:01 gnome-terminal thom 6683 0.0 0.1 4144 1456 pts/0 S 14:04 0:00 bash root 6709 0.0 0.1 3832 1008 pts/0 S 14:04 0:00 su - root 6712 0.0 0.1 4180 1468 pts/0 S 14:04 0:00 -bash root 6753 10.6 3.1 80048 24608 pts/0 S 14:04 0:02 ./q3ded +set dedicated 1 +exec server.cfg thom 6756 0.2 0.1 4144 1456 pts/1 S 14:04 0:00 bash root 6782 0.0 0.1 3832 1008 pts/1 S 14:04 0:00 su - root 6785 0.1 0.1 4172 1448 pts/1 S 14:04 0:00 -bash root 6825 0.0 0.0 1524 660 ? S 14:04 0:00 CROND root 6826 0.0 0.0 1524 660 ? S 14:04 0:00 CROND root 6827 0.0 0.0 1524 660 ? S 14:04 0:00 CROND root 6828 0.0 0.0 1524 660 ? S 14:04 0:00 CROND root 6829 15.0 0.3 4276 2612 ? R 14:04 0:00 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg root 6830 8.0 0.2 3912 2236 ? R 14:04 0:00 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mailscanner-mrtg.cfg mailman 6831 14.0 0.4 5316 3524 ? R 14:04 0:00 /usr/bin/python -S /var/mailman/cron/qrunner mailman 6832 14.0 0.4 5324 3532 ? R 14:04 0:00 /usr/bin/python -S /var/mailman/cron/gate_news root 6833 0.0 0.1 2788 824 pts/1 R 14:05 0:00 ps -auxwww -------Original Message------- From: psyche-list@redhat.com Date: Saturday, January 11, 2003 2:01:45 PM To: psyche-list@redhat.com Subject: Re: Scripting Question On Friday 10 January 2003 19:50, Thom Paine uttered: > I'd appreciate any input on this. At a later date to get fancier, I'd like > to record the pid so that I can kill it from cron too. I'd like to only > have the server running at night and I'd like to rotate through the > different servers on a weekly basis. I can figure out how to do that from > the cron, but I need to know the pid's of the server when it starts up. Ok, basically to help you, I'll need to see an unmolested output of a ps -auxwww when you are sure that the quake3 server is running. Once I see that, I can help you w/ the script to correct the checking and starting of the server. -- Jesse Keating RHCE MCSE For Web Services and Linux Consulting, Visit --> j2Solutions.net Mondo DevTeam (www.mondorescue.org) Was I helpful? Let others know: http://svcs.affero.net/rm.php?r=jkeating -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list . -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list