I'm trying to use a subprocess call in python to add a cron job entry:
from subprocess import call
call(["(crontab -l; echo '* * * * * ls -l | tee tresults.txt') | sort - | uniq - | crontab - "])
And I don't know what I'm doing wrong! This is the error: