Quote:
I guess execute will always work and reset the error to 0.


this was exactly my thought and so I tried to verify this. This is what the actual manual says:
 Quote:
Execute

Returns:
The exitcode of the executed script.


As far as I understand it, its not the exit code of the execute command, its the exit code of the executed script.

I adjusted my script as you suggested, still not luck. Share gets connected, return code always 0.


Edited by MartinAD (2012-05-18 02:04 PM)