Ignore:
Timestamp:
Jul 26, 2015, 5:20:54 PM (9 years ago)
Author:
alloc
Message:

Scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/commands/status.sh

    r90 r248  
    2020                echo "Open ports:"
    2121                netstat -nlp | grep $(getInstancePID $1) | sed -r 's/^([^ ]*)\s+.*[^ :]*:([^ ]*).*[^ :]*:[^ ]*.*/    \2 (\1)/g' | sort
    22                 cur=$(telnetCommand $1 lp | grep -E "^\s?Total of " | cut -d\  -f 3)
     22                cur=$(telnetCommand $1 lp | grep -aE "^\s?Total of " | cut -d\  -f 3)
    2323                echo "Players: $cur"
    2424        else
Note: See TracChangeset for help on using the changeset viewer.