Advertisement
Fernando_Debian

Untitled

Mar 5th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. trap stopLogPaste SIGINT
  4. stopLogPaste() {
  5. echo " Um momento colerando os logs..."
  6. sleep 1
  7. fpaste /tmp/file_fernando.log
  8. }
  9.  
  10. journalctl -f > /tmp/file_fernando.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement