[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash script & Cronjob mail
From: |
Paul Jarc |
Subject: |
Re: Bash script & Cronjob mail |
Date: |
Mon, 08 Oct 2001 10:44:39 -0400 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 |
"Manuel Ifland" <mistudio@altavista.de> wrote:
> If I do this, cron sends a mail that also says "function
> unimplementet".
I expect there's more to the error message than that. Whatever is
giving you this message is telling you that you tried to make it do
something it can't do. You should find out what, and stop trying to
make it do that.
> #!/bin/sh
> /usr/bin/fetchmail>/dev/null
> if [ $? = 0 ]
> then
> play sound.wav
> fi
Try this:
#!/bin/sh
if /usr/bin/fetchmail > /dev/null 2>&1; then
play sound.wav
fi
> How can I prevent cron from sending me the fetchmail output?
The "2>&1" above will suppress it, if it is indeed coming from
fetchmail. But the problem it's telling you about will still exist.
> How can I specify parameters in my script for fetchmail?
The same way you normally would.
paul