blob: 3e70ab5727003a662ebe43774cf8bcae828cde18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
clear
processname="dlt-daemon"
pidofdlt=`pidof $processname`
if [ $pidofdlt ]
then
echo "DLT Deamon is running with PID:$pidofdlt"
else
echo "DLT Daemon is NOT running"
fi
if [ -f /var/log/messages ]
then
echo "------- messages ----------------"
cat /var/log/messages | grep -a DLT | tail
fi
if [ -f /var/log/syslog ]
then
echo "------- SYSLOG -------------------"
cat /var/log/syslog | grep -a DLT | tail
fi
|