[Tutor] internet access

Eric Brunson brunson at brunson.com
Thu Oct 11 18:59:46 CEST 2007

Alan Gauld wrote:
> "shawn bright" <nephish at gmail.com> wrote
>> messenger (gaim) all night if i didn't. i have a cron script that 
>> checks the
>> hour of day, if later than x pm. does
>> os.system("/etc/init.d/network stop")
>> os.system("chmod a-x /etc/init.d/network") ( so that a reboot 
>> doesn't
>> override it )
> Whilst this is a Python list it might not always be the best solution.
> In the case above a shell script is probably better since all you are
> doing is calling shell commands.

As my dear old dad would say, "There's a right tool for every job, and 
it's almost never vise grips."


(What do you call vise grips in the UK? Vise-grips is a trademarked name 
in the US, but has become a general term for locking pliers.  See:  

> I assume your cron is run as root?
> Alan G 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list