blob: 3723d4da5406554f71a798c35166ba5ac61aa94b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
outfile=$RSYSLOG_OUT_LOG
echo "Starting with parameters: $@" >> $outfile
while [ $# -gt 0 ]; do
echo Next parameter is \""$1"\"
shift
done >> $outfile
read log_line
while [[ -n "$log_line" ]]; do
echo "Received $log_line" >> $outfile
read log_line
done
echo "Terminating normally" >> $outfile
exit 0
|