Ok I solved my problem. It was, that I run Xchat from my user skuromis but the 2nd amule from another user via su 'anotheruser'.
But in the script the values are catched from $ENV{USER}, so the script came into trouble, skuromis was not running any aMule :]
So what did I do: first I told amule to write amulesig.dat in a directory, where both user can read it and 'anotheruser' write.
Then I changed all §ENV[USER] into 'anotheruser' (in one case it was USER_HOME into /home/anotheruser) and changed the path, where to find amulesig.dat. All xas named things I renamed xasanotheruser, so I hope I'm able to use the second original script for the other aMule. And it works ;OD