Forum Moderators: open
2 Call the traxis logging script from within ICS. This should be a simple hack. If you are not familiar with it, go check out the perl 'require' function. You may need to add a '1' to the bottom of the logging script. There may be some tweaking you'll need to do to both scripts, but it really isn't all that complicated.
3 This may be the simplest approach if it works. If you are calling ICS via SSI (verses executing it directly as a cgi script) then you could just add one more call to your index page. It may also be simpler to adapt this approach than to do 1 or 2.
You should really be able to get this done using one of the three methods.
Methinks I see a new problem tho.
I want to install a logging script on some client sites that are a little less involved:
1. I want them to read from the log files.
2. Not create logs of its own that I have to keep up with.
I have played with access probe and it seem ok but I dont want clients cleaning up log files or any advanced anything. Just graphical stats they can see what keywords are coming to their site. Kind of a toy to play with. Also I need a Tutorial on telnet in linux to set up a .htpasswd file so when the referring log hyperlinks get clicked then the other guy can come back to my stats page (in the cgi-bin).
A very basic telnet howto type of page [webx.webxharbor.com ]
Here is a page with some commands [cc.uoregon.edu ]
And here is a nicely detailed tutorial on setting up password protection -
[colorado.edu ]
If you just want to execute a script via telnet or ssh just type in 'perl script.pl'. But if you are going to execute scripts using crontab I believe you are going to have to write a shell script to to execute your perl scripts. There may be another way around that but this is the way I've always had to do it. Don't get intimidated by it though, here is an example of a shell script I use to trigger a couple of perl scripts:
#!/bin/bash
/usr/bin/perl /www/scripts/myscript1.pl
/usr/bin/perl /www/scripts/myscript2.pl
/usr/bin/perl /www/scripts/myscript3.pl
and so on...
The first part '/usr/local/perl' is to call up the perl interpreter and the '/www/scripts/myscript1.pl' is the full path to the perl script and the script name.
Thanks littleman. You da man.
Thanks littleman. You da man.