My python subprocess call did not work in crontab why?
<p>My current approach is to first remove the old model, save the new model , using the shell  is no problem , but it just doesn't work automatically using crontab. Any idea why or how to solve this? Thanks for the help.</p>

<p>The error is that main programm does not wait for the subprocess.call to return. I think that this is the problem but not sure.</p>

<p>This is my current command:</p>

<pre><code>subprocess.call('dse hadoop fs -rmr /root/recommend_model', shell=True)  
</code></pre>