Forum Moderators: coopster & phranque

Message Too Old, No Replies

need help with Mason

         

dorna1

11:22 pm on May 21, 2006 (gmt 0)

10+ Year Member



1) I have a perl script that will run successfully from the command line.
2) How to I run this script from within the <%init> section of a Mason file?

This doesn't work:

<%init>

system "/path/to/file/on/server/file.cgi;

</%init>

Thanks!

physics

4:47 pm on May 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure how to fix your problem but this forum is a better place for it.
One thing is that a " is missing before the ; right?
Also, check the permissions on the cgi file and make sure that apache has permissions to execute it... try chmod 777 for testing.

KevinADC

5:26 pm on May 22, 2006 (gmt 0)

10+ Year Member



yea, first try using the correct syntax:


<%init>
system('/path/to/file/on/server/file.cgi');
</%init>

see if that helps.