View previous topic :: View next topic |
Author |
Message |
Talid -
Joined: 16 Nov 2002 Posts: 5
|
Posted: Fri Nov 22, 2002 4:29 am Post subject: perl and shtml |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Nov 22, 2002 7:43 am Post subject: Re: perl and shtml |
|
|
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 |
|
|
Talid -
Joined: 16 Nov 2002 Posts: 5
|
Posted: Fri Nov 22, 2002 8:36 am Post subject: |
|
|
Ah,, okay, then I should use something like:
system("myscript.cgi"); in the first script to run the sencond?
-T |
|
Back to top |
|
|
Talid -
Joined: 16 Nov 2002 Posts: 5
|
Posted: Fri Nov 22, 2002 9:16 am Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Nov 22, 2002 12:37 pm Post subject: |
|
|
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 |
|
|
|