I have a Linux server and I need to run a sh script with many commands every 5 seconds.
With a crontab, the minimum is 1 minute.
How can i do this?
Thank!
maybe watch
watch
Example
watch -n 5 foo.sh
You can also use sleep in a loop in a shell script:
sleep
#!/bin/sh while [ true ] do sh foo.sh sleep 5 done