adium-pipeevent icon indicating copy to clipboard operation
adium-pipeevent copied to clipboard

Pipe Event will not run a script set to use Perl

Open zostay opened this issue 13 years ago • 1 comments

The environment for Adium may be a little too squeaky clean or something. If I write a script like this:

#!/usr/bin/perl
system('echo foo >> /tmp/adium-speak-chat.log');

I never get output. I got similar results when I tried the sample Ruby script from jcs' blog.

I think this is because the locale environment is missing or something when it runs, but without any built-in logging it's difficult to tell. The only reason I can even suspect the locale is because when I use bash to run a Perl script, I can get it to work by adding

export LC_ALL=en_US.utf-8
export LC_MESSAGES=en_US.utf-8
export LANG=en_US.utf-8

to the script before executing Perl. I don't know what would be a good resolution to this issue, but logging would be a start so I can at least no why with more accuracy.

zostay avatar Jan 14 '11 15:01 zostay

i think this is because stdout and stderr get closed right away. this might get fixed when it's changed to send stdout and stderr to adium's debug log.

jcs avatar Jan 26 '11 22:01 jcs