Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 16 lines (9 sloc) 434 Bytes
#!/bin/bash
SUBJECT="Subject: nicht zugewiesener Chip!\n"
FROM="From: noreply@$(hostname)\n"
TO="To: personal@fhi-berlin.mpg.de\n\n"
CONTENT="Hallo,\ndies ist das Terminal $(hostname).\nEs wurde ein unregistrierter Chip mit folgender RFID gelesen:\n"
CHIP="$1\n"
MAIL=$SUBJECT$FROM$TO$CONTENT$CHIP
printf "$MAIL" | /usr/sbin/sendmail personal@fhi-berlin.mpg.de
printf "$MAIL" | /usr/sbin/sendmail kirstaedter@fhi-berlin.mpg.de