# cat enable_notifications
#!/bin/sh
# This is a sample shell script showing how you can submit the ENABLE_NOTIFICATIONS command
# to Nagios. Adjust variables to fit your environment as necessary.
now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'
/bin/printf "[%lu] ENABLE_NOTIFICATIONS" $now > $commandfile
# ./enable_notifications
./enable_notifications: line 8: /bin/printf: No such file or directory