Skip to content

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information