Script runs from terminal, won't run in scheduler or Webfig

Hello,

I have RouterOS 5.20. The following one line script (details changed to protect my client) works great from the terminal, but fails running in the Scheduler, or if I hit the Run Script button when in WebFig:

/system ssh 12.34.56.78 command=“./custom.sh param1 param2” user=“nonadmin”

‘nonadmin’ is using a dsa key for logging into the remote system. As I said, it works fine from the terminal.

Any suggestions on the cause of the problem? Is there a way to enable logging that will show me an error message and why it’s failing?

Thank you.

I had this problem a while back: http://forum.mikrotik.com/t/ssh-between-routers-works-in-terminal-but-not-in-script/56818/1 and never had a solution. I wonder if this is a bug, or there is something we are missing?