CGI Perl script to execute bash script- unable to create folder

Hi

I have a bash script which takes parameters

sh /tmp/gdg.sh -b BASE-NAME -n 1 -s /source/data -p /dest/data/archive -m ARC

gdg.sh will scan the /source/data and will move the contents to /dest/data/archive after passing through some filters. Its working superb from bash

I have created a html front end with form like structure which execute the below script through cgi

system("sh","/tmp/gdg.sh","-b","$base_name","-n","$retain","-s","$source","-p","$dest","-m","$mode");

The above code is unable to create the files at $dest locations. How can i make it possible

---------- Post updated 07-19-12 at 02:10 AM ---------- Previous update was 07-18-12 at 05:37 PM ----------

its solved.

the script was executing using the id "wwwrun" but my destination directory has no permissions to it.

I have set the ACL persmissions to wwwrun and everything was as expected.... :slight_smile: