i am using the s3cmd linux utility to deletes files from our amazon s3 bucket. i have created a function in python which calls the s3cmd command line utility and access and deletes the files amazon s3 bucket.
command= 's3cmd -c .s3cfg del s3://project-bucket/images/testimage.jpg'
os.system(command)
when i run the project through django development server, it works fine. the image does get deleted.
but if i run on apache it does not work. the image does not get deleted. i checked the apache error logs, they are no errors in the apache log. please help.