Gaccm
12-18-2000, 03:28 AM
ok, i set up crontab and everything works! except for a line (i think). what my crontab does is at 4am, disconnect from internet, shutdown firewall and reconnect soon after (i have dynamic dsl, get discconected if on for 48 (or something) hours straight) here is a copy of (root's) crontab:
SHELL=/bin/bash
5 2 * * * /usr/bin/updatedb
5 4 * * * /usr/sbin/adsl-stop
7 4 * * * /sbin/ifconfig eth0 0.0.0.0 up -arp
8 4 * * * /usr/sbin/adsl-start
9 4 * * * /usr/local/pmfirewall/pmfirewall start
i know the first 2 lines work and the last line. I had been using the sh shell, but it screwed up on ifconfig, so i changed it to bash. but it never seems to connect to the internet (2nd last line) and i have no clue way, any help?
SHELL=/bin/bash
5 2 * * * /usr/bin/updatedb
5 4 * * * /usr/sbin/adsl-stop
7 4 * * * /sbin/ifconfig eth0 0.0.0.0 up -arp
8 4 * * * /usr/sbin/adsl-start
9 4 * * * /usr/local/pmfirewall/pmfirewall start
i know the first 2 lines work and the last line. I had been using the sh shell, but it screwed up on ifconfig, so i changed it to bash. but it never seems to connect to the internet (2nd last line) and i have no clue way, any help?