• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Causing Anacron jobs to run immediatelyEdit

Created 7/11/2021, updated 8/26/2023

Can do this for testing purposes:

# anacron -fn           # kick off the jobs
# tail -f /var/log/cron # monitor the logs

ie.

  • -f to force execution, ignoring timestamps.
  • -n to ignore delay specifications (not sure if this is actually needed, but as you can see I used it anyway).
  • -s (implied by -n) to run jobs serially instead of in parallel.

Via: https://askubuntu.com/a/761675

  • wiki
  • anacron
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).