Forums Index > Mewsoft Products > Auctionawy > CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--
Anonymous First Post Posted on: 07-07-08 05:06 AM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

:? wondering that too

What is it for? Can I safely delete it Ahmed?

Thanks,
Kit
Romahawk Reply #: 1 Posted on: 07-07-08 07:52 AM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

Not sure but one of the URL's brings up Road Runner Central New York News for me so they may be for a news feed.

They aren't hurting anything as they are commented out so the program shouldn't be reading them....
mewsoft Reply #: 2 Posted on: 07-09-08 01:10 PM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

These are like SSI commands exactlly in your shtml page,


<!--!CLASS::SSI_Include(ssi_include.txt)-->



the above class will read the contents of the file ssi_include.txt and inserts it in the location of this class in your templates.

<!--!CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)-->



The above class will execute the script banner.cgi from its location and inserts its output in the class location.


<!--!CLASS::Custom:url_grab:URL_Include(http://yahoo.com)-->



The above class will connect to the website http://yahoo.com and inserts the reslut in the location of the class.

<!--!CLASS::Custom:url_grab:URL_Clip_Include(http://yahoo.com, Local, Americas)-->

The above class will connect to the website http://yahoo.com and inserts the reslut then will insert only the contents between the words Local and Americas in the location of the class.

Mewsoft Support
www.mewsoft.com

chill Reply #: 3 Posted on: 02-11-09 03:24 PM
I need help with these Classes

Dear Mewsoft: \ \ I would like to use the CLASS::SSI_Exec class for my Classifiedawy web site, but this doesn't work after I changed it to reflect my web site path, and for it to execute an amazon-search index.cgi script. Nothing gets inserted into the custom named .shtml web page I made, and where I inserted the code in the customed named .shtml web page. And, yes, I did remove the ! before the Class name, so it would work. Also I cannot find the SSI_Exec class. Where are the SSI_Exec and SSI_Include classes? And the Yahoo.com CLASS::Custom:url_grab: doesn't work. Any help would be appreciated.\ \ Charles
mewsoft Reply #: 4 Posted on: 02-12-09 04:38 AM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

These classes for use inside your templates only NOT for use in external files, external files .shtml you use the SSI commands normal.

Mewsoft Support
www.mewsoft.com

chill Reply #: 5 Posted on: 05-01-09 11:29 PM
I don't understand...

Dear Mewsoft:\ \ Does this mean that I cannot execute a #exec cgi="/cgi-bin/amazon/index.cgi" from within the amazon.page.shtml web page using the Template Editor or from within the Language Manager for amazon too putting the #exec cgi="/cgi-bin/classified/index.cgi" in the body text [[page_body_text]]? I tried both ways, and neither one worked. Is there a way to do this where I can retain the look and feel of the web site? Thanks again for your help.\ \ Charles
mewsoft Reply #: 6 Posted on: 05-02-09 02:18 AM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

You can by using the class like this:


Code: HTML
</p><p>&lt;!--CLASS::SSI_Exec(/cgi-bin/amazon/index.cgi)--&gt;<br /></p><p>


Mewsoft Support
www.mewsoft.com

chill Reply #: 7 Posted on: 05-02-09 10:18 AM
Still confused...

Dear Mewsoft:\ \ Where do I put this? Does it go in the template .shtml page or in the language manager [[page_body_text]] field? I tried both, but it still doesn't work. I even put the CLASS::SSI_Exec(../cgi-bin/amazon/index.cgi)with a ../ before it to reflect the amazon directory placement in relation to the classified directory - they are in the same cgi-bin directory.\ \ Charles
mewsoft Reply #: 8 Posted on: 05-03-09 09:55 AM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

For the perl script you may need to write it in the form:

SSI_Exec(perl  /home/wwww/mewsoft.com/cgi-bin/banner.cgi)


Mewsoft Support
www.mewsoft.com

chill Reply #: 9 Posted on: 05-03-09 11:37 AM
Still not working...

Dear Mewsoft:\ \ I tried what you said: CLASS::SSI_Exec(perl /home/httpd/vhosts/sellence.com/cgi-bin/amazon/index.cgi)\ \ I placed it in the amazon.page.shtml page and it doesn't work. I do have SSI enabled for the site, so that isn't the problem. Since this is a CLASS::SSI_Exec, shouldn't there be a SSI_Exec in the Class Editor for this to work? I ask this because I don't see a SSI_Exec in the Class Editor list or CLASS::SSI_Include too.\ \ Charles
mewsoft Reply #: 10 Posted on: 05-03-09 08:55 PM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

Try to test your setup with this class:


Code: HTML
</p><p>&lt;!--CLASS::SSI_Exec(perl -v)--&gt;</p><p>

this should display your server perl version information in the location where your insert this class say on your homepage.

I double check the class and it works fine, make sure the script you are calling works and returns or prints anything. You can try the same command from Telnet if you have shell access.


Mewsoft Support
www.mewsoft.com

chill Reply #: 11 Posted on: 05-03-09 09:11 PM
Perl return ok...

Dear Mewsoft:\ \ The perl check worked ok:\ \ This is perl, v5.6.1 built for i386-linux Copyright 1987-2001, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. \ \ I tested the script: http://www.sellence.com/cgi-bin/amazon/index.cgi and it works just fine.\ \ Charles
mewsoft Reply #: 12 Posted on: 05-03-09 09:20 PM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

Your scripts should not include the html page head code, everything between <body> and </body> code only, you may need to delete any other head code like the <html>, <title> etc.

Mewsoft Support
www.mewsoft.com

chill Reply #: 13 Posted on: 05-03-09 09:29 PM
I see...

Dear Mewsoft:\ \ I understand what you are saying. Thanks you for your help and insight.\ \ Charles
chill Reply #: 14 Posted on: 05-03-09 09:40 PM
About the include...

Dear Mewsoft:\ \ This is what I got for the CLASS::Custom:url_grab:URL_Clip_Include(http://yahoo.com, Local, Americas:\ \ Software error:\ \ Can't locate object method "new" via package "LWP::UserAgent" (perhaps you forgot to load "LWP::UserAgent"?) at (eval 9) line 81.\ \ For help, please send mail to the webmaster (chill@ezwebpagedesigns.com), giving this error message and the time and date of the error. \ \ I checked with host provider and they told me it was installed:\ \ /usr/local/psa/lib/perl5/site_perl/5.6.1/LWP/UserAgent.pm\ \ Charles
mewsoft Reply #: 15 Posted on: 05-03-09 09:58 PM
Re: CLASS::SSI_Exec(/home/wwww/mewsoft.com/cgi-bin/banner.cgi)--

Yes these URL grab classes was removed from long time for the overhead they add for the page load during connecting to other sites.

Mewsoft Support
www.mewsoft.com