Author Topic: Missed Cron Jobs  (Read 719 times)

Agent007

  • Member
  • **
  • Posts: 120
  • Kudos: 0
Missed Cron Jobs
« on: 4 April 2003, 09:49 »
Hi all,

I have an entry of the update-zapper script in crontab. It is set to update itself at 9 in the morning everyday. But since I'm on a dial-up, the system is not connected to the net at that time. What happens if the job is not run? Will it run at a later stage? ie: when the system is connected to the net?

thanks,
007
AMD Athlon processor
256MB SDRAM
Linux Distro - RedHat 9.0

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Missed Cron Jobs
« Reply #1 on: 4 April 2003, 11:01 »
Nyet. It will run next time it hits 9 o'clock, I belive. Unless you get connected while it's trying to get the file.

Agent007

  • Member
  • **
  • Posts: 120
  • Kudos: 0
Missed Cron Jobs
« Reply #2 on: 4 April 2003, 12:49 »
So how is it possible to make it run whenever the internet connection is detected?

thanks,
007
AMD Athlon processor
256MB SDRAM
Linux Distro - RedHat 9.0

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Missed Cron Jobs
« Reply #3 on: 6 April 2003, 05:26 »
ummm... is there a program that is running when dial up is connected (i've never had dialup in linux so i dont know)
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Missed Cron Jobs
« Reply #4 on: 6 April 2003, 05:36 »
well if there is one program that is always running when the dial up is connected then you could do somethin like make a bash script like this:
Code: [Select]
that would see if there is any "kppp" running and if there is 1 kppp then it would execute "update-zapper_command" but thats only if 1 kpp is running, i'm not sure how to make it check to see if there is more than 0 which is what would be ideal.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

TheQuirk

  • VIP
  • Member
  • ***
  • Posts: 2,154
  • Kudos: 315
Missed Cron Jobs
« Reply #5 on: 6 April 2003, 06:01 »
Actually, I think there's a daemon which runs missed cron jobs... I forgot the name. I'll find it, though.