3

Is there any possibility to run a cron job with dynamic time interval? Please suggest. I have used Ruby on rails, whenever .

intellidiot
  • 11,108
  • 4
  • 34
  • 41

1 Answers1

2

You might be looking for the at command. You can use at to trigger a cron-like event at a certain time.

Here are some examples:

$ echo "wget https://www.example.com" | at 11:45 jan 31

I believe this also works:

$ echo "wget https://www.example.com" | at now next week
wp78de
  • 18,207
  • 7
  • 43
  • 71
Daniel Lockard
  • 615
  • 3
  • 11