I have a cgi script which get request from the html javascript and runs some system command then response back to the javascript. Now in my cgi script and in the one of the set function I have the below code of lines.
$shred1 = `/usr/bin/find /usr/demo/logs -type f | xargs shred -uvz -n 5`;
$shred2 = `/usr/bin/find /var/lib/pgsql/data -type f | xargs shred -uvz -n 5`;
the first line i.e, "shred1" is getting executed successfully but the second line "shred2" just hangs and even wont return any error. Is there any thing that I am missing here or is there any other approach to achieve the same. Thank you.