hi there,
i would like to use /etc/daily.local for flushing some pf tables.
kripel> cat /etc/daily.local
#!/bin/sh
echo "flushing bad_ssh: "
pfctl -t bad_ssh -T flush
i don't run sendmail, so i modified root's crontab:
30 1 * * * /bin/sh /etc/daily 2>&1 > /var/lo
frantisek holop wrote:
30 1 * * * /bin/sh /etc/daily 2>&1 > /var/log/daily
.out
my problem is, that pfctl's output goes to the terminal and
not the log file...
If you want both stdout and stderr in /var/log/daily.out, the line needs
to read
... /bin/sh /etc/dail
On 9/21/05, frantisek holop <[EMAIL PROTECTED]> wrote:
> i don't run sendmail, so i modified root's crontab:
>
> 30 1 * * * /bin/sh /etc/daily 2>&1 >
> /var/log/daily
> .out
>
> my problem is, that pfctl's output goes to the terminal and
> not the log file...
This is
frantisek holop wrote:
hi there,
i would like to use /etc/daily.local for flushing some pf tables.
kripel> cat /etc/daily.local
#!/bin/sh
echo "flushing bad_ssh: "
pfctl -t bad_ssh -T flush
i don't run sendmail, so i modified root's crontab:
30 1 * * * /bin/sh
hmm, on Wed, Sep 21, 2005 at 10:50:40AM -0400, Michael Erdely said that
> This is a redirection issue.
>
> Your crontab line should be:
> ... /bin/sh /etc/daily > /var/log/daily.out 2>&1
uf. back to unix elementary school ;-)
> How about just bypassing daily.local in root's contrab all together
5 matches
Mail list logo