=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 12 January 2003 15:19, aon.912165893@... wrote:
> 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?
you can use strace to see which file licq tries to open.
a common mistake is, to not use the full path to commands inside scripts. w=
hen=20
you have a login shell, your $PATH is set correctly, but if you call the=20
script from licq, the script may see not $PATH and thus may not find it's=20
commands.
Can you send us your script that we can try ourselfs?
Thomas
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+IdYs+83LmoKU5MARAoiqAJ4v/i1rE3b9mvbVRQO5c0LHtvL7YgCfUqKR
z7QD5j2Da7tGf2aKd5Big5M=3D
=3DzgI9
=2D----END PGP SIGNATURE-----
|