On Wed, Jun 04, 2003 at 04:45:49PM +0530, Sudev Barar wrote:
> > ifup/ifdown in crontab is not enough for you?
> > 
> > Binand
> 
> Can I ask for a little hand holding????
> If you please I promise I will read all about it but right now am in
> rather a hurry for today. Have never set crontab. just a little help on
> how to do it.

Hmm.

Run crontab -e (as root).

Enter this as it is:

30 17 * * * /sbin/ifdown eth1
30 08 * * * /sbin/ifup eth1

This assumes the interface to shutdown/start is eth1. It shuts the
interface down at 5:30 PM (17:30) and brings it back up at 8:30 AM.

Its already five, so better get that in soon! :-)

Binand

-- 
Russian Roulette with Unix:
while :; do kill $RANDOM &> /dev/null && break || sleep 1; done


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to