Mail from ILUG-BOM list (Non-Digest Mode)
_______________________________________________
Those of you who have vsnl's monsoon package and get free internet time
between 23:00 and 08:00 and on Sundays may be interested in this little
script.
#!/bin/bash
[ "$(date | egrep -i '(sun)|((23)|(0[0-7]):..:..)')" != "" ] \
&& GOODTIME=1 || GOODTIME=0
echo $GOODTIME
exit $GOODTIME
It prints 1 if it's a Sunday or between 23:00 and 08:00 and 0 otherwise.
Also sets its exit value to whatever it prints.
Shouldn't be hard to plug it into some other script that does your
dialling for you. eg, if you want to use caltiger at day and vsnl at
night, use this to swap.
I use it to change fetchmailrc files to allow only small downloads at day
and big downloads at night.
Philip
--
"It's ten o'clock... Do you know where your AI programs are?" -- Peter Oakley
Visit my webpage at http://www.ncst.ernet.in/~philip/
Read my writings at http://www.ncst.ernet.in/~philip/writings/
_______________________________________________
Next Meet on 12th Nov 2000 at HBCSE
Website: http://www.ilug-bom.org.in/
Linuxers mailing list [EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers
CHAT: irc.ilug-bom.org.in