[go: up one dir, main page]

Character escaping

I'm wondering whether (and how) CronTab escapes special characters like % or ':

with CronTab(user='root') as cron:
    job = cron.new(command="some % weird 'command' here")
    cron.render()

"\n* * * * * some % weird 'command' here\n"

How does this work? Or are users expected to escape the cron commands by hand?

Edited by Radim Řehůřek