Fernando_Debian

coleta_logs.sh

Mar 5th, 2024
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 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
Add Comment
Please, Sign In to add comment