Current Path : /proc/2/cwd/proc/2/root/opt/zabbix_scripts/ |
Current File : //proc/2/cwd/proc/2/root/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}