You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
214 B
17 lines
214 B
8 years ago
|
#!/bin/sh
|
||
|
|
||
|
# fake app that logs something
|
||
|
|
||
|
c=1
|
||
|
|
||
|
while true; do
|
||
|
# stdout log
|
||
|
echo "[stdout] $0 test: $c ..."
|
||
|
|
||
|
# logger writes to syslog (/dev/log)
|
||
|
# logger -t $0 "test: $c ..."
|
||
|
|
||
|
c=$(($c+1))
|
||
|
sleep 2
|
||
|
done
|