WebFaction
Community site: login faq

Ok, So I've been able to schedule and use cron. Learned a crap ton doing it as well...

However, I would like to know if its possible to use this module for a more robust cron environment. The documentation says there are four ways to access the cron process...

from crontab import CronTab
system_cron = CronTab()
user_cron = CronTab('root')
file_cron = CronTab(tabfile='filename.tab')
mem_cron = CronTab(tab="""
  * * * * * command
""")

So if I wanted to use this module, what method would be best to access the crond running my tabs? I am relatively certain it isn't system_cron, root seems wrong and the crontab files I've been using have a different id every time. If it is not possible, that is cool too :^)

module is here

asked 05 Jun '13, 01:07

monkmartinez
2116
accept rate: 0%


You wouldn't have any issue using python-crontab on our systems.

You just need to install it with easy_install or pip.

Using system_cron would be just fine, since it will pickup your username and alter crontab on your behalf.

permanent link

answered 05 Jun '13, 09:26

iliasr ♦♦
2.1k14
accept rate: 35%

Thank you much appreciated

(05 Jun '13, 11:50) monkmartinez
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×81

question asked: 05 Jun '13, 01:07

question was seen: 2,113 times

last updated: 05 Jun '13, 11:50

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM