I'm not famililar with the shell but i have to run this command from a Python file:
curl -XDELETE 'localhost:9200/event/_query?pretty' -d '{"query" : { "range" : { "int_timestamp" : { "lte" : "2016-06-09 08:55:10" } } } }'
From the file i use os.popen to execute the command. I have tried it also with os.system. In both cases it gives me the following Error:
(23) Failed writing body
But when i run this command in the shell, it worked perfect.
What did i wrong? Thanks for help!
EDIT: I don't know why because i doesn't change something. But now it worked with os.system instead of os.popen.
Anyway thanks for help!