I have to try and echo something to a file from python, but because fot eh content of what I want to write to this file, I seem to not be getting all of what I want into the file.
Here is what I WANT to echo to a file:
[ $(date +\%d) -eq $(echo $(cal) | awk '{print $NF}') ] &&
her is what shows up in the file:
[ $(date +\%d) -eq $(echo $(cal) | awk {print $NF}) ] &&
so if I have the variable:
mes = "[ $(date +\%d) -eq $(echo $(cal) | awk {print $NF}) ] && "+buCommand
os.popen("echo '"+mes+"'>>/etc/cron.d/"+mycronfile+";")
how do I KEPP my single quotes?