NSAS Wiki

Network System Access Solutions

User Tools

Site Tools


Sidebar

Contact

linux:fwchange
fwchange.sh
#!/bin/bash
TEXT=""
EMAIL=
USER="Michel Pelzer"
 
if [ $# -lt 1 ]
then 
    echo "USEAGE: $0 <REASONS>"
    exit 1
fi
 
echo "Please state the change:"
TEXT=$(cat ${TEXT})
 
echo "Firewall change:
 
USER:       ${USER}
DATE:       $(date)
REASON:     $@
 
TEXT: 
-----
${TEXT}" | mail -s "fwchange" ${EMAIL}
linux/fwchange.txt · Last modified: 2018/09/07 10:12 by michel.pelzer