in reply to linux file creation

It works for me on Linux. I would strongly suspect that if you check the default directory on the target machine, the userid that your script is running under can't write to it. Other likely causes are that it's out of disk space, or quota. You might try having your script chdir to another directory, say /tmp, to help track it down.