Current Path : /proc/self/root/proc/2/cwd/proc/2/cwd/opt/zabbix_scripts/ |
Current File : //proc/self/root/proc/2/cwd/proc/2/cwd/opt/zabbix_scripts/pdns.version.sh |
#!/bin/bash pdnsVersion=`sudo rpm -qa | grep -oE '^pdns\-[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}' | cut -d\- -f2` echo ${pdnsVersion}