Re: Permission denied error 3
I assume that you are using a wrong target path.
From your "when I'm using the script", I assume that it works for you in GUI, right? Show us a log from GUI.
From your "when I'm using the script", I assume that it works for you in GUI, right? Show us a log from GUI.