From DefCon Projects
Jump to: navigation, search
New pages
Hide registered users | Hide bots | Show redirects
  • 07:20, 3 February 2025Mail bei dmesg Output (hist | edit) ‎[1,086 bytes]Webmaster (talk | contribs) (Created page with "Manchmal ist es praktisch wenn man bei neuen Kernel-Meldungen informiert wird. Dieses Skript informiert euch per Mail wenn es zu einem neuen Eintrag im dmesg Protokoll gekommen ist. == Skript == <syntaxhighlight lang="c"> #!/bin/bash # Email configuration TO_ADDRESS="admin@example.com" SUBJECT="New dmesg Entry Detected for $(hostname)" MAIL_CMD="/usr/bin/mail" # Make sure the mail command is installed # Temporary file to store the last state of dmesg DMESG_LAST="/tmp/...")
  • 11:33, 2 February 2025Mail bei YUM Updates (hist | edit) ‎[967 bytes]Webmaster (talk | contribs) (Created page with "Ich habe mehrere Server im Betrieb für die ich ein BASH-Skript benötigt habe das mich informiert wenn neue YUM Updates zu verfügung stehen. Ich möchte hier mit euch das BASH-Skript teilen: == Skript == <syntaxhighlight lang="c"> #!/bin/bash EMAIL="admin@example.com" STATE_FILE="/tmp/update_count.state" # Execute yum check-update and capture the output UPDATES=$(yum check-update --quiet 2>/dev/null) # Filter out empty lines and count the number of updates UPDATE...")
Cookies help us deliver our services. By using our services, you agree to our use of cookies.