Hello Brit! On Tuesday, February 16, 2016 at 8:03:39 PM UTC+1, Britt Treece wrote: > Have the following bash script that i'm using to monitor postfix queues. > > ---------------- > #!/bin/bash > active=$(sudo find /var/spool/postfix/active -type f | wc -l) > deferred=$(sudo find /var/spool/postfix/deferred -type f | wc -l) > incoming=$(sudo find /var/spool/postfix/incoming -type f | wc -l) > maildrop=$(sudo find /var/spool/postfix/maildrop -type f | wc -l) > > echo "mailque > active=$active,deferred=$deferred,incoming=$incoming,maildrop=$maildrop" > ---------------- > SNIP > What am I doing wrong?
The problem might be with sudo. Sudo works by default in an interactive mode. Have a look at the man page for sudo. Namely -A and -b options. I hope that helps. Best regards, Ján -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/620f1c57-1b7e-49fd-bec2-05ed2bba68d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
