On Tue, Sep 28, 2010 at 3:18 PM, mani k <[email protected]> wrote:
> hai,
> Am a beginner to python...i use terminal to shutdown my system by
> calculating the time for my downloads and uses the command 'sudo
> shutdown -h +time'.....how can i implement this using python script
>
> may by you need to use :
import os
os.system("shutdown -h +time'")
but you won't be let to shutdown as you are not root .
check this ,
https://bbs.archlinux.org/viewtopic.php?pid=654161#p654161
And i've heard you can shutdown through dbus
> --
> "Freedom is the only law".
> "Freedom Unplugged"
> http://www.ilug-tvm.org
>
> You received this message because you are subscribed to the Google
> Groups "ilug-tvm" group.
> To control your subscription visit
> http://groups.google.co.in/group/ilug-tvm/subscribe
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
>
>
>
> For details visit the google group page:
> http://groups.google.com/group/ilug-tvm?hl=en
>
--
Srihari K
--
"Freedom is the only law".
"Freedom Unplugged"
http://www.ilug-tvm.org
You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To control your subscription visit
http://groups.google.co.in/group/ilug-tvm/subscribe
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For details visit the google group page:
http://groups.google.com/group/ilug-tvm?hl=en