How to kick off unix script in Lotus Notes

I am a newbie to Lotus Notes. I got a task to investigate on how to kick off unix script in Lotus Notes. Can anyone shed some lights on it? or is there any document about it?

Subject: How to kick off unix script in Lotus Notes

I am assuming you want your domino server to cause a script to be executed. In which case, you can use a lotusscript agent to do this.

A very basic example of lotusscript to do this would be :

Dim cmd As String

Dim v As Variant

cmd = |bash -c “YOUR COMMAND HERE”|

v = Shell( cmd )

Things to check out are info about scheduled agents, and the “Shell” command in lotus script.

Hope this helps somewhat.

Craig.

Subject: RE: How to kick off unix script in Lotus Notes

Thanks. The requirement is to kick off the Unix script in the Lotus email or template. So when an email is received, the script will be automatically run,

Has anyone done this before? how to set it up?

Subject: RE: How to kick off unix script in Lotus Notes

You need to create a “Before mail arrives” agent in the mail template. This will run on the server whenever anyone gets new mail (once their designs have refreshed of course), and you can execute your script.

Craig