5 lines
87 B
Bash
5 lines
87 B
Bash
#!/usr/bin/env bash
|
|
LOGFILE=/var/log/$1.log
|
|
MSG=`cat`
|
|
echo "$(date): $MSG" >> $LOGFILE
|