Guest User

Untitled

a guest
Jun 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. FATHER.SH:
  2. #!/bin/bash
  3. until $(bash Child.sh >> now.log 2>&1); do
  4. echo "Child crashed! Respawning..."
  5. sleep 1
  6. done
  7.  
  8. CHILD.SH:
  9. #!/bin/bash
  10. while true; do
  11. date +"%T"
  12. sleep 1
  13. done
Add Comment
Please, Sign In to add comment