• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 715
  • Last Modified:

crontab: every 30 seconds

How can I run a crontab command every 30 seconds?
0
hankknight
Asked:
hankknight
2 Solutions
 
wesly_chenCommented:
cron's granularity is in minute.
Just write your script with loop and sleep 30 seconds after the command.

while [ true ]
do
   <something>
   sleep 30
done
0
 
arnoldCommented:
on the same premise schedule two identical scripts to run at exactly the same time/interval and add in one sleep 30,
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now