mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-23 17:16:47 +00:00
13 lines
300 B
Plaintext
13 lines
300 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
OUTPUT=""
|
||
|
|
||
|
openvpn=$(pgrep -c openvpn$)
|
||
|
[[ $openvpn -gt 0 ]] && OUTPUT=$(eval printf "%.0s" {1..$openvpn})
|
||
|
|
||
|
openfortivpn=$(pgrep -c openfortivpn$)
|
||
|
[[ $openfortivpn -gt 0 ]] && OUTPUT=${OUTPUT}$(eval printf '%.0s' {1..$openfortivpn})
|
||
|
|
||
|
echo $OUTPUT | sed -e 's/\(.\)/\1 /g'
|
||
|
|