Mailing List CGatePro@mail.stalker.com Message #92575
From: Technical Support, Stalker Labs <support@stalker.com>
Subject: Re: external processing failed: scripts in rule actions
Date: Wed, 12 Sep 2007 05:53:40 +0400
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
Hello,
 Frédéric Marchand on 11.09.2007 12:07 wrote:

Hello!
I'm trying to process mails using an external script, but everything i
tried result in a "external task failed: Error Code=external processing
failed"

Whatever program or script is not even executed so i probably missed
something, here what i've done:

/var/CommuniGate/Scripts/test.sh:
#!/bin/sh
echo "ok" >> /tmp/ruleoutput.txt
exit 0

chmod a+x /var/CommuniGate/Scripts/test.sh

And i set an action rule to: Execute /var/CommuniGate/Scripts/test.sh

Try to execute it throught the shell interpreter, i.e.
Execute /bin/sh /var/CommuniGate/Scripts/test.sh


And i've got this message in the log:
launching external task: /var/CommuniGate/Scripts/test.sh
external task failed: Error Code=external processing failed

I've also tried textscan.c which i found on the stalker's ftp, but it's
the same problem.

Thanks for helping me out!

Fred




#############################################################
This message is sent to you because you are subscribed to
  the mailing list <CGatePro@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
Send administrative queries to  <CGatePro-request@mail.stalker.com>


--
Sincerely,
Roman

=======================================================================
When answering to letters sent to you by the tech.support staff, make
sure the original message you have received is included into your reply.
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster