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