Forum Moderators: open

Message Too Old, No Replies

SSI call from cloaked index.html

Having a hard time

         

BoneHeadicus

11:16 pm on Dec 31, 2000 (gmt 0)

10+ Year Member



How can I get an ssi to execute from a page that is presented to the user thru a cloaking script? I cain't seem to make it werk.

littleman

4:51 am on Jan 1, 2001 (gmt 0)



Putting a ssi call on the 'human viewed' page of a cloaking script will not work; however, there are alternatives. Can you give a little detail about what you are trying to do?
Also...
1 Is you cloaking script called via ssi?
2 What is the nature of the other script you want to incorporate?

BoneHeadicus

7:56 am on Jan 1, 2001 (gmt 0)

10+ Year Member



The script is ics and I have since lernt that I cain't dodat. I'm trying to get the referring url out of the AXS logging script...I see that I can use cgi?pixel.gif as a tag but I lose the referrring url..any ideas big guy?

littleman

9:44 am on Jan 1, 2001 (gmt 0)



There are three approaches that may work.
1 Well, you could build a sub routine that prints the formatted information to the flat text files in the same manner as Traxis. I do a similar technique to incorporate real-time tracking into my cloaking setup.

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.

littleman

9:58 am on Jan 1, 2001 (gmt 0)



Woops, I just realized you were talking about ASX and not Traxis. Just to clarify, all the above applies to ASX as well. In fact I've done something very similar to my first suggestion on my servers.

BoneHeadicus

6:43 pm on Jan 1, 2001 (gmt 0)

10+ Year Member



<duh>BoneHeadicus' personal XML tag</duh>
Now I see the obvious. Thanks littleman. I got it to work just fine with door #3.

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).

littleman

8:47 pm on Jan 1, 2001 (gmt 0)



A script that does a good job at recording referrers and search engine keywords but doesn't do much else is
Reflogs [awsd.com]. It's pretty basic and easy for clients to understand.

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 ]

BoneHeadicus

11:19 pm on Jan 1, 2001 (gmt 0)

10+ Year Member



You're alright littleman.

I can telnet in and move around now but how do I execute a file? How can I cron sumpin?

littleman

12:39 am on Jan 2, 2001 (gmt 0)



There are different ways to use cron, but you probably are going to have to use corntab.
Check out Air's little howto on crontab at [webmasterworld.com ]

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.

BoneHeadicus

9:10 am on Jan 2, 2001 (gmt 0)

10+ Year Member



./ helps when executing files...I found a great book in .pdf here [leda.mcs.alma.edu]. I'm still trying to get the crontab thing to work but it's getting there. I went ahead and installed the whole weblog script aturl=http://awsd.com/scripts/logtools/]awsd[/url]. Lots of info and if I can get the crontab thing ironed out, it'll be hands free.

Thanks littleman. You da man.

BoneHeadicus

9:11 am on Jan 2, 2001 (gmt 0)

10+ Year Member



./ helps when executing files...I found a great book in .pdf here [leda.mcs.alma.edu]. I'm still trying to get the crontab thing to work but it's getting there. I went ahead and installed the whole weblog script atawsd [awsd.com]. Lots of info and if I can get the crontab thing ironed out, it'll be hands free.

Thanks littleman. You da man.