infinitive loop

/ Published in: Bash
Save to your folder(s)

infinitive loop in bash, useful if you want to have a self-healing process

Copy this code and paste it in your HTML
  1. #!/bin/bash
  2. while :
  3. do
  4. echo "Press [CTRL+C] to stop.."
  5. sleep 1
  6. done

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.