> Hi!
> 
> I wrote myself a small bash script which I want to use as event command. The 
> complete pathname is "/home/martin/scripts/icqmessage.sh" and it accepts two 
> parameters:
> 1) type (e.g. message, online, system, ...)
> 2) Alias name of the user (%a)
> The script works perfect if called from the shell.
> 
> If I set "/home/martin/scripts/icqmessage.sh" as command and e.g. "message %a" 
> as parameter the script is never executed. I also tried to use "/bin/bash" as 
> command and the following line as parameter:
>    -c "/home/martin/scripts/icqmessage.sh message %a"
> This also doesnt work. Any hints on how I can use a bash script as event 
> command? Or how I can see what licq actually is trying to do and get some 
> error message?
> 
> Thanks in advance,
> Martin

You probably don't have execute permissions on the script. Try running
chmod u+x /home/martin/scripts/icqmessage.sh

Also, the first line of the script has to be "#!/bin/bash". This tells
the operating system with which program to run the script.

Alternatively, you could lose the "-c" in your argument list, so that
your parameter is /home/martin/scripts/icqmessage.sh message %a (no
quotes).

Hope to help.

Roie Marianer


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
LICQ-Main mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-main

Reply via email to