Author |
Message |
|
Posted:
Sat Jul 22, 2006 10:48 am
|
|
|
Grand High Exalted Mystic Ruler
Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey
|
|
Well again, this data is only up until June 2005...over a year ago. It's possible you hadn't started using that steam id yet. In fact, you're only listed with 15 kills and 10 deaths.
Sounds like you just played your first round at teh fun house ... |
_________________
The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Sat Jul 22, 2006 12:23 pm
|
|
|
Forum H4xor
Joined: 17 Jun 2005
Posts: 1234
Location: missouri
|
|
wow i didnt even know i was in a clan called {Ts} lol and most of those names r my sister/dads |
_________________
-SoldierBoy- wrote: |
Since my invitation to CFH in late 2004, my goal has been to see Nirvana's penis. |
WTF
Nerve-ana wrote: |
oh when i woke up i realized i pissed myself lol was walking throught the town with a huge stain on my pants. |
|
|
|
|
|
|
Posted:
Sun Jul 23, 2006 1:19 pm
|
|
|
Forum Scout
Joined: 17 Dec 2005
Posts: 97
Location: Windy City, USA
|
|
Hi Chips,
According to this post Here
They give you 2 examples of a script to use for the cronjob to start it.
1) First copy/paste into wordpad file the following code (I put the code at the bottom - see below - pick one)& call it hlstats.sh
2) Make a folder (say for example cronhlstats) on your webhost behind the public_html or hotdocs folder (not accessible from the web)
- place in it the new hlstats.sh and the hlstats.pl
- chmod the cronhlstats folder ?? they don't say - I use 777 for my cronjobs because 755 doesn't work for me
- chmod the files (hlstats.sh & hlstats.pl) - they say 700 I use 754
- I'll test the chmod 700 tonight...if you get a permission error in your email from cron...this is why
3) Now for the cron- in cpanel click on cron jobs - then standard
put your email in the top box
then in command box put the link to that hlstats.sh with the command restart at the end
they have for example: cd /path/to; hlstats.sh restart >/dev/null 2>&1
maybe something like this(I don't think you'll need the "cd" to change directory in there- your giving it the link):
/hermxx/webxx/b8xx/pow.chips/cronhlstats/hlstats.sh restart >/dev/null 2>&1
and set it to run
minute 0
hour 0 (Midnight)
day - everyday
month - every month
weekday - every weekday
Save - exit
HLSTATS.SH CODE:
Code: |
#!/bin/bash
# HLstats init script
# NO WARRANTY GIVEN OR IMPLIED.
# USE AT YOUR OWN RISK.
case "$1" in
start)
if [ -f hlstats.pid ]; then
kill -0 `cat hlstats.pid` >/dev/null 2>&1
if [ $? ne 0 ]; then
echo "HLstats is already running!
else
./hlstats.pl &
echo $! >hlstats.pid
fi
else
./hlstats.pl &
echo $! >hlstats.pid
echo "No PID file, creating"
fi
;;
stop)
kill -9 `cat hlstats.pid` >/dev/null 2>&1
if [ $? == 0 ]; then
rm -rf hlstats.pid
fi
;;
restart)
kill -9 `cat hlstats.pid` >/dev/null 2>&1
if [ $? == 0 ]; then
rm -rf hlstats.pid
fi
if [ -f hlstats.pid ]; then
kill -0 `cat hlstats.pid` >/dev/null 2>&1
if [ $? ne 0 ]; then ## if 0, then HLstats is running
echo "HLstats is already running!
else
./hlstats.pl &
echo $! >hlstats.pid
fi
else
./hlstats.pl &
echo $! >hlstats.pid
echo "No PID file, creating"
fi
;;
*)
echo " Usage: ./hlstats.sh [ start | stop | restart ]"
;;
esac
#
exit 0 |
OR
Code: |
#!/bin/bash
# HLstats init script
# NO WARRANTY GIVEN OR IMPLIED.
# USE AT YOUR OWN RISK.
case "$1" in
start)
echo "Starting hl_stats";
if [ -f hlstats.pid ]; then
kill -0 `cat hlstats.pid` >/dev/null 2>&1
if [ "$?" == "0" ]; then
echo "HLstats already running!"
else
rm -rf hlstats.pid
./hlstats.pl >/dev/null 2>&1 &
echo $! >hlstats.pid
echo "PID file created"
echo "Started successfully"
fi
else
./hlstats.pl >/dev/null 2>&1 &
echo $! >hlstats.pid
echo "PID file created"
echo "Started successfully"
fi
;;
stop)
echo "Stopping hl_stats..."
kill -9 `cat hlstats.pid` >/dev/null 2>&1
if [ "$?" == "0" ]; then
rm -rf hlstats.pid
echo "Stopped successfully"
else
echo "No HLstats running!"
fi
;;
restart)
echo "Restarting hl_stats..."
kill -9 `cat hlstats.pid` >/dev/null 2>&1
if [ "$?" == "0" ]; then
rm -rf hlstats.pid
./hlstats.pl >/dev/null 2>&1 &
echo $! >hlstats.pid
echo "PID file created"
echo "Restarted successfully"
else
echo "Hlstats not started"
if [ -f hlstats.pid ]; then
rm -rf hlstats.pid
fi
./hlstats.pl >/dev/null 2>&1 &
echo $! >hlstats.pid
echo "PID file created"
echo "Started successfully"
fi
;;
*)
echo "Usage: ./run_hlstats [ start | stop | restart ]"
;;
esac
#
exit 0 |
Hope this helps some...
I don't know how cpu/mysql intensive this is.. psychostats runs it's cron every four hours.. not all the time & I'm not sure if that is too often
I also have 2 nice backup scripts I use (cronjobs) that ..#1- dump mysql nightly and .tar(s) it .. #2 - tars my web folder .. then I can download them at my leisure. If you want a copy - let me know. |
_________________
When you've reached the end of your rope - tie a knot and hang on. |
|
|
|
|
|
Posted:
Tue Jul 25, 2006 1:01 am
|
|
|
Grand High Exalted Mystic Ruler
Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey
|
|
There was an hlstats.sh file that came with hlstats...these are slightly different versions you've listed though...I have to look into that.
I'm having weird problems with the table names...I've had to rename them all. When accessing the db through the hlstats.php file...the first thing it looks for is "hlstats_Options"...when the table name is "hlstats_options" I don't have this problem on my local computer that I'm compiling the db on. Any thoughts
Anyway...the database is updated THROUGH January 2006:
http://www.chipsfunhouse.com/hlstats/hlstats.php |
_________________
The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Tue Jul 25, 2006 11:55 am
|
|
|
Forum Scout
Joined: 17 Dec 2005
Posts: 97
Location: Windy City, USA
|
|
When I look at the hlstats.sql that should of been used to create/fill the tables I see:
Code: |
CREATE TABLE hlstats_Options (
keyname varchar(32) DEFAULT '' NOT NULL,
value varchar(255) DEFAULT '' NOT NULL,
PRIMARY KEY (keyname)
); |
It seems hlstats_Options would be correct.
Did you use a backup or something else to create the tables? We're talking about a Capital 0 vs Lower Case o correct? |
_________________
When you've reached the end of your rope - tie a knot and hang on. |
|
|
|
|
|
Posted:
Tue Jul 25, 2006 12:22 pm
|
|
|
Grand High Exalted Mystic Ruler
Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey
|
|
Yeah...I caught that myself right after I posted and looked into it further. At least the table names are now correct. When I first dumped the db as a backup to load to my web space...I named it hlstats.sql...silly me. That probably started the trouble right there. I know nothing about what I'm doing...I'm learning by trial and error.
I suppose I can dl a dump of the current db on my web space and import it on my local machine to continue to parse the remaining logs. I shouldn't have that problem going forward.
Tomorrow night, I hope to fire up our rebuilt main server for a few test rounds (it'll be running on port 27016) and see if I can't connect a blank test db for hlstats to it.
The only caveat to the above statement is getting some more info from my web host. Chipsfunhouse.com is not a hosted domain...it's a pointed domain. Requests for chipsfunhouse.com/anything...are routed to a folder within my regular hosted domain. This WAS done with a custom .htaccess file. On my hosts new platform...they have a tool in cpanel to do this. However, they had problems with it initially and did something behind the scenes to get the redirect to work. This matters because dependent on which way it's done (.htaccess, cpanel tool, tech support initiated) translates to where the cron jobs can be run from (root directory -non public or below htdocs-public).
If I think I have enough info by tomorrow evening...I'd appreciate you're assistance if you have the time...and patience. |
_________________
The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Tue Jul 25, 2006 3:23 pm
|
|
|
Forum H4xor
Joined: 18 Sep 2005
Posts: 1567
Location: Idaho
|
|
Yes, but did you remember to reconfoombilate the energimotron-thingie? |
_________________
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Sun Jul 30, 2006 11:53 pm
|
|
|
Grand High Exalted Mystic Ruler
Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey
|
|
Dark Applepolisher wrote: |
Yes, but did you remember to reconfoombilate the energimotron-thingie? |
Haven't quite gotten to that yet.
I have had no luck getting this thing working "live"...but I'm not ready to give up yet. Although, I have now updated the database through Arpil 2006. Hopefully, I'll be right up to date by the coming weekend.
http://www.chipsfunhouse.com/hlstats/hlstats.php |
_________________
The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Sun Aug 06, 2006 8:55 pm
|
|
|
Grand High Exalted Mystic Ruler
Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey
|
|
My hopes of having this completed by this weekend...are now gone. The laptop I was using to compile this database has crashed hard. Looks like the HD is kaput.
All data is lost...had to do a complete reinstall with the recovery cd's...and still, looks like the HD has gone bad. Perhaps I'll get back to this some day...but for now, this project is on a back burner. |
_________________
The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Sun Aug 06, 2006 9:31 pm
|
|
|
Forum H4xor
Joined: 07 Aug 2005
Posts: 2103
Location: South Amboy, New Jersey
|
|
|
_________________
--- Pete + Sam + Dean = chevelle = teh greatest ---
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Sun Aug 06, 2006 9:34 pm
|
|
|
Forum H4xor
Joined: 26 Feb 2005
Posts: 1131
Location: East Coast - New Jersey
|
|
All I gotta say is, HLSTATS FTW !!! Might not have it all working, but they sure look good. GJ there Mr Chips !!! |
_________________
Dont mistake my kindness as a sign of weakness!!!!
Offense doesn't win matches.......big friggin' guns do !!! Ole' Painless FTW !!!
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Mon Aug 07, 2006 1:46 am
|
|
|
Grand High Exalted Mystic Ruler
Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey
|
|
I've ordered some part for the laptop...a new HD and an LCD inverted (the monitor went out also.
Hopefully by the end of the week...I can start piecing this project back together. |
_________________
The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Sat Sep 02, 2006 3:07 pm
|
|
|
Grand High Exalted Mystic Ruler
Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey
|
|
Seems delivery now is expected mid-October...the part is back-ordered.
I do have 3 other computers in the house...but the installation of the software needed is not something I want on any of them for what they're currently used for. Hopefully...I'll have it up and running and get this finalized before the holidays. |
_________________
The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Sat Dec 02, 2006 5:07 pm
|
|
|
Grand High Exalted Mystic Ruler
Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey
|
|
Finally got the inverter and the monitor now works on my old laptop...but the hard drive doesn't.
I held off ordering a new HD until I was sure the monitor would come back to life...so sense in purchasing that if I couldn't see what was going on with the machine. So...I'll be ordering a new HD which are abundant on the market...unlike the inverter I purchased.
Maybe I can get this finished for the holidays. |
_________________
The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008
-[CfH]-Server Admin |
|
|
|
|
|
Posted:
Mon Jan 29, 2007 10:27 am
|
|
|
Forum Medic
Joined: 13 Jul 2005
Posts: 184
Location: Las Vegas, NV
|
|
... I have a few spare machines around, if that's the only problem.
Let me know! |
_________________
Howling Man is 1337 wrote: |
The sniper is what we like to call a 'gateway class'. It opens the door to more unsanitary, unsightly games like Counterstrike. Friends dont' let friends snipe.
Just say no. |
|
|
|
|
|
|