Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Linux - Automatische mail schicken

Empfohlene Antworten

Hi,

ich habe mal wieder ein kleines problem mit programmieren unter Linux shell. Ich habe ein programm entwickelt welches automatisch pings ausführt und in einer log datei speichert. nun würde ich gerne wissen, falls eine netzwerkkomponente nicht zur verfühgung steht eine mail automatisch an den Admin geschickt. wie kann nich oder man das am besten lösen?

Ziege


$MTA = "/usr/lib/sendmail";

$header_TO="admin@blafasel.de";

$header_CC="entscheider@chefetage.blafasel.de";

$header_FROM="perlscript@host.net";


if ( open( MAILER, "|$MTA \"$header_TO\" \"$header_CC\" ) )

 {

  select( MAILER );

  print "Subject: Mail fuer dich\n";

  print "From: $header_FROM\n";

  print "To: $header_TO\n";

  print "Cc: $header_CC\n";

  print "\n";

  print " bla bla fasel \n";

  print " gallia divisa est in partes tres \n";

  close ( MAILER );

  select ( STDOUT );

 }


Hope that helps

------------------

devilhome.png

http://home.netuse.de/ae/

BTW: Ein altes Gästebuchscript das so etwas nutzt ist auf der Homepage unser alten Berufsschulklasse zu finden:

it97-2.gif

BS Kiel/Gaarden IT97-2

Auf der Gästebuch-Seite ist ein Link zum Quelltext.

besten dank leute.

Hat mir sehr weiter geholfen.

Ziege

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.