Calling perl script in a agent

pts.
Tags:
LotusScript
Hi, I have to call a perl script in a Lotus Notes agent written in Lotus Script. I use the following function resul=Shell("c:perlbinperl.exe " & pathname) where pathname is the path of my perl script to run. Agent is scheduled to run on server but it doesn't work. Could you say me if my code is correct or not? Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

Haven’t done Perl scripts myself, however…
Are you saying it doesn’t work because it doesn’t return anything? If you just start a program on the Server, how is the Server supposed to know it needs to output things to the HTTP application?
Domino supports Perl scripts and CGI programs. You need to put your Perl scripts that end in .pl in the cgi-bin directory. Domino expects the Perl interpreter (named PERL.EXE) in the PATH environment variable.
To run CGI programs you need to specify the URL to something like this.

I’m guessing for perl scripts you’ll use the .pl file instead of the .exe file. Incorporate it with $$Return field and you have some powerful tools. I hope that gives you some ideas.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following