Révision 36748826
Fix spelling mistakes
| plugins/network/netatalk | ||
|---|---|---|
| 124 | 124 |
echo "proc.value" $(ps ax --no-headers -o command | grep "^$afpdPath" | wc -l) |
| 125 | 125 |
|
| 126 | 126 |
# Connected users (user): |
| 127 |
# We will ignore root (having UID=0 it's line will be first) (assomption done: there will have only one line corresponding to root in `ps` output)
|
|
| 127 |
# We will ignore root (having UID=0 it's line will be first) (assumption done: there will have only one line corresponding to root in `ps` output)
|
|
| 128 | 128 |
connectedUsers=$(ps anx --no-headers -o uid,command | sed 's/^ *//g' | grep "^[0-9]* $afpdPath" | sort -n | tail -n +2 | awk '{print $1}')
|
| 129 | 129 |
echo "user.value" `echo $connectedUsers | wc -w` |
| 130 | 130 |
|
Formats disponibles : Unified diff