diff options
Diffstat (limited to 'svlogc')
-rwxr-xr-x | svlogc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -0,0 +1,4 @@ +#!/sbin/sh + +SERV_NAME=$(echo "$1" | sed 's/\/log$//') +[ -f /var/log/"$SERV_NAME"/current ] && tac /var/log/"$(echo "$1" | sed 's/\/log$//')"/current | less || echo "Cannot read log" |