From DefCon Projects
Jump to: navigation, search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)

3 February 2025

  • 07:2107:21, 3 February 2025 diff hist +28 Main Page→‎Artikelübersicht current
  • 07:2007:20, 3 February 2025 diff hist +1,086 N Mail bei dmesg OutputCreated 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/..." current

2 February 2025

  • 11:3311:33, 2 February 2025 diff hist +27 Main Page→‎Artikelübersicht
  • 11:3311:33, 2 February 2025 diff hist +967 N Mail bei YUM UpdatesCreated 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..." current

27 January 2022

24 January 2022

12 February 2021

8 February 2021

12 October 2020

30 April 2019

29 April 2019

25 April 2019

23 April 2019

28 December 2017

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.