Discussion Locked

Need help with SSI 'exec' command

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to run "remindme.cgi?send_reminders" from a .shtml page. When I put on the .shtml page, I get "[an error occurred while processing this directive]"

Any ideas on how to run "remindme.cgi?send_reminders" from another page?

1 reply

by shelleydoll

Sometimes 'exec' is blocked on the server, and I'm not sure that you can send parameters to it. Try the 'virtual' directive instead:

Since it's an include, and not an exec, you need to put the line:
print "content-type: text/html\n";
at the top of your script, after the #!/usr/bin/perl line, or whatever you're using.

Other issues you could be having include - you have no ./ in front of your cgi-bin, in the exec command, and exec requires a relative path, not a url; also, make sure your program has permission to be executed. On UNIX, this means you have to 'chmod 755 remindme.cgi'

Hope that helps!

This discussion is closed to new replies.