Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. # python <<'EOF'
  2. import daemon
  3. from time import sleep
  4.  
  5. print("Inizializzazione")
  6. sleep(5)
  7. print("Inizializzazione completata")
  8.  
  9. with daemon.DaemonContext():
  10.     while True:
  11.         print("Doing task 1")
  12. EOF
  13.  
  14. # python <<'EOF'
  15. import daemon
  16. from time import sleep
  17.  
  18. print("Inizializzazione")
  19. sleep(5)
  20. print("Inizializzazione completata")
  21.  
  22. with daemon.DaemonContext():
  23.     while True:
  24.         print("Doing task 2")
  25. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement