Ricky Leonhart
05-10-2001, 03:20 AM
Hi all,
I am using a linux as my firewall and NAT gateway to share the cable modem service for my home network. I wrote I very simple bash script to keep check the existance of ip address of the external NIC because the ip often disappear due to dhcp lease time expire or traffic idle time period. Part of the script is like this:
#!/usr/bash
ifconfig eth1 | grep inet
.
.
.
I setup the crontab to run this script every minute, but I run into a problem of cron generate a mail to the root account every time it run. So it's just kinda like mail spamming. Is there any way to solve this problem? I checked the manual page of cron but it doesn't mention about how to turn off this function.
Best Regards,
Jacky Liu
"Genius or Wacko? Majority or Minority… "
I am using a linux as my firewall and NAT gateway to share the cable modem service for my home network. I wrote I very simple bash script to keep check the existance of ip address of the external NIC because the ip often disappear due to dhcp lease time expire or traffic idle time period. Part of the script is like this:
#!/usr/bash
ifconfig eth1 | grep inet
.
.
.
I setup the crontab to run this script every minute, but I run into a problem of cron generate a mail to the root account every time it run. So it's just kinda like mail spamming. Is there any way to solve this problem? I checked the manual page of cron but it doesn't mention about how to turn off this function.
Best Regards,
Jacky Liu
"Genius or Wacko? Majority or Minority… "