Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a tool for Ubuntu to schedule jobs similar to at but for anacron instead if plain cron? Eg.

echo "rm -Rf /tmp/workdata.$$.*" | at now + 99 minutes

It doesn't have to be via anacron, just whatever my scripts can rely on to run either at the scheduled time or when the server is back online.

If it's a scheduler only root can use I'll just wrap the calls with sudo

share|improve this question
add comment

1 Answer 1

Two game-changing things I've learned since then, that sort of resolve the matter:

  • at daemon already runs jobs that fell behind schedule eg. due to server outage
  • Using this property, anacron already sits on top of the crontab facility, and as bundled by default cannot schedule tasks at the hour/minute granularity, only month/day in its global config file in /etc (root owned).
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.