back2arie/Kalkun — Issue #40: HowTo Run External Script
Author: oachkatzlschwaf
Created: 2012-02-25 09:08:47+00:00
State: open

Hi *!

How can i run an external script? I don't know what i'm doing wrong.

My steps:
- Install plugin "external script" via kalkun
- edit /application/plugins/external_script/external_script.php:

$config['ext_script_path'] = '/bin/bash';

$config['ext_script'][0]['name'] = '/var/www/check_system.bash';
$config['ext_script'][0]['key'] = 'content';
$config['ext_script'][0]['type'] = 'match';
$config['ext_script'][0]['value'] = 'check';
$config['ext_script'][0]['parameter'] = '';

When i send a message with content'check' to the "kalkun-system" nothing happens. the script has 777 permissions and works fine if i start i manually.

I'm using ubuntu server 11.10.

thanks in advance
best regards
thomas