linux - Bash scripting with skeleton in Debian -


this question has answer here:

before of first, i'm linux (administrator|developer) newbie.

i need run bash script every 5 seconds, it's simple; export service's information text files.

i try cron daemon, it's run every minute @ least.

i'm discover skeleton script , have many questions this:

  • i need write special code in bash file?
  • how run every 5 seconds?
  • there best practices manual?

yes not possible through cron daemon runs once in every minute. or when job list modified

put whatever want run in script inside infinite while loop , put sleep of 1 sec like

while [ 1 ] run_your_cmds here sleep 1 done

but dont think need kind of monitoring.

best practice!! please dont try , cron.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -