logoalt Hacker News

dofm • today at 11:57 AM • 2 replies • view on HN

Unless you want to run something every thirty seconds.


Replies

hans_castorp • today at 2:07 PM

Or have it run, if the computer wasn't turned on when the task should have run.

bayindirh • today at 12:00 PM

You can run the command with time, get the real field, subtract from 30, sleep that amount and run the command again in a script, and call that every minute from cron.

If the command is really instant you can do "command & sleep 30; command".

heh.