I was trying to hack together a quick command template without having to add a script to libexec, but I'm finding that I can't use awk to print field variables because the zencommand is apparently trying to expand them. E.g. I can't do this:

   ntpdate -q ${dev/manageIp} | awk '/time/ {print "NTP OK: |t_offset="$10}'

Neither a single nor a double backslash seems to escape the '$' symbol. What syntax am I looking for here?


Thanks.



--
David Carmean                                            Network Appliance, Inc
Infosystems Architect,                                   495 E. Java Drive
Java (Sunnyvale) Engineering Lab Services                Sunnyvale, CA  94089
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to