Deleting files from applets

I am using a perl script which deletes the files in a temp area, when run from the command prompt, but fails when called from the applet through URL.
The permissions for the files and directory is "777".
what may be the reason......??????

help me out.....

thanks,
Jay.

I don't know if this applies in your specific case, but generally you cannot delete files through an applet (assuming you mean JAVA) as this is considered a potential security risk. (A rogue program could potentially have the ability to arbitrarily delete files of someone's system which could have disastrous results)
But you are having the applet call this script, which is doing the removing of files, I don't know if this applies in your case.

Anyone know some more about this?