I am trying to write copy some files from a CGI written in Perl to an USB disk already mounted. I have tried some solutions and all failed:
1. I tried to create the directory with mkpath, and I found that this function throws an error: permission denied.
2. I tried to copy the files to a directory created in /media/usbdisk/mydir/. The copy failed, another time permission denied.
3. I tried to write a file with the list of files to write, so another script get the files and copy them to the appropriate directory. I have followed the link: https://secure.experts-exchange.com/index.jsp?srid=UVinBiQSsEhwpSxfk2Ph1A%3D%3D&redirectURL=/Programming/Languages/Scripting/CGI/Q_23008561.html&rsid=20#a20429742
, but it does not work.
Can anyone give me an advice.
Thanks in advance