0 pts.
 Calling perl script in a agent
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

Software/Hardware used:
ASKED: July 26, 2005  3:16 AM
UPDATED: August 11, 2005  8:23 PM

Answer Wiki:
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 http://www.lotus.com/cgi-bin/register.exe?Email&&&LastName&&& 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.
Last Wiki Answer Submitted:  August 11, 2005  8:23 pm  by  Cripple   0 pts.
All Answer Wiki Contributors:  Cripple   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _