perl and shtml

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
Talid
-


Joined: 16 Nov 2002
Posts: 5

PostPosted: Fri Nov 22, 2002 4:29 am    Post subject: perl and shtml Reply with quote

Got a question, I have a perl script that calls a shtml file.
In the shtml file I have a <!--#include virtual= function. If I run the shtml file by itself, it works fine but if I run it through the perl script, the include doesn't work.
Any ideas? Am I missing a server config?

Help!

Thanks!
-T
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Nov 22, 2002 7:43 am    Post subject: Re: perl and shtml Reply with quote

Talid wrote:
Got a question, I have a perl script that calls a shtml file.
In the shtml file I have a <!--#include virtual= function. If I run the shtml file by itself, it works fine but if I run it through the perl script, the include doesn't work.
Any ideas? Am I missing a server config?

No, it is the normal behaviour. A file which is meant to be processed by a CGI interpreter is passed to that interpreter without any other form of processing (including SSI.)
So if you want to include a file in your Perl script, you should use Perl code to do that.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Talid
-


Joined: 16 Nov 2002
Posts: 5

PostPosted: Fri Nov 22, 2002 8:36 am    Post subject: Reply with quote

Ah,, okay, then I should use something like:
system("myscript.cgi"); in the first script to run the sencond?

-T
Back to top View user's profile Send private message
Talid
-


Joined: 16 Nov 2002
Posts: 5

PostPosted: Fri Nov 22, 2002 9:16 am    Post subject: Reply with quote

I'm trying to get the perl script to run an other perl script. This is what I've tried without any success:

else
{
my $timeleft = system("MKCountDown.pl?christmas");
display('signup.html', { lists => $data, timeleft => $timeleft });
}

Any help?

Thanks!
-T
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Nov 22, 2002 12:37 pm    Post subject: Reply with quote

Talid wrote:
I'm trying to get the perl script to run an other perl script. This is what I've tried without any success:

else
{
my $timeleft = system("MKCountDown.pl?christmas");
display('signup.html', { lists => $data, timeleft => $timeleft });
}

Any help?

Thanks!
-T

Invoking System that way is wrong. System doesn't accept the same form as URLs (with ?). Instead,you should pass arguments on the command line (as you would do with any DOS/Shell command for example) to your MKCountDown.pl script.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group