in reply to File Permission with open

It seems that your open fails and that is probably because the user-id that the CGI-process runs under does not have write permissions to the directory in which you want to create it.

And btw: As you are not capturing any output you should use system($cmd) rather than qx/$cmd/.

Replies are listed 'Best First'.
Re^2: File Permission with open
by grungero (Initiate) on Oct 16, 2010 at 01:54 UTC
    Thank you for your answer.
    I'm sorry my ignorance, but how can I solve that problem?.
    I need to give write permissions to the computer (that is not the server) that navigates through the system?...or I need to configure some file in my server?. Is there a way that I can create the file and give it all the permissions?.
    Thank you.
      I think the problem lies in directory-permissions on the server.

      Forgive me for saying this but I would really advise you to seek some advice from a sysadmin (if you have one) because you seem be to be not that experienced and could cause a lot of problems if you change permissions on the server and don't really know what you are doing...

      But if you are on your own try to create your temporary files in the /tmp directory which normally is writeable for all.

        Thank you!!!!...It works. And yes, you're right, I'm kind of a rookie in this :-P ...but thanks to people like you, I'm learning a little bit more every day....thank you again.
        Thank you.. I'll try it