Author: glen
Date: Fri Feb 20 12:10:55 2009
New Revision: 10134

Modified:
   nagios-notify/trunk/nagios-notify
Log:
- easy code to save env for debugging

Modified: nagios-notify/trunk/nagios-notify
==============================================================================
--- nagios-notify/trunk/nagios-notify   (original)
+++ nagios-notify/trunk/nagios-notify   Fri Feb 20 12:10:55 2009
@@ -308,4 +308,11 @@
        exit 1
 fi
 
+# Save ENV to temp file for debugging
+#debug=1
+if [ "$debug" = 1 ]; then
+       tmp=$(mktemp -t nagios-notify.env.XXXXXX)
+       env | LC_ALL=C sort | awk -F= '/NAGIOS_/{printf("export %s=%c%s%c\n", 
$1, 39, $2, 39)}' > $tmp
+fi
+
 template_subst "$tmpl"
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to