Re: [Tutor] Complete Shutdown

2010-11-02 Thread Timo
On 01-11-10 21:01, Chris King wrote: Dear Tutors, How do I completely shutdown a computer without administrative rights using a simple python script. I once came across the following when playing with dbus. import dbus bus = dbus.SystemBus() bus_object = bus.get_object("org.freedesktop.Ha

Re: [Tutor] Complete Shutdown

2010-11-01 Thread Alan Gauld
"Steven D'Aprano" wrote How do I completely shutdown a computer without administrative rights using a simple python script. If you have such a computer get rid of it, it fails the most basic test I'm not so sure about that... I think a personal computer which didn't allow ordinary, unpriv

Re: [Tutor] Complete Shutdown

2010-11-01 Thread Steven D'Aprano
Chris King wrote: I restarted the whole system with a script. Why couldn't I shut it down? Probably because the script told the computer to restart rather than shut down. It will help if you tell us: * what operating system you are running * what you did to restart the computer * what yo

Re: [Tutor] Complete Shutdown

2010-11-01 Thread Steven D'Aprano
Alan Gauld wrote: "Chris King" wrote How do I completely shutdown a computer without administrative rights using a simple python script. If you have such a computer get rid of it, it fails the most basic test of a secure operating system. No program that runs upon it could ever be relie

Re: [Tutor] Complete Shutdown

2010-11-01 Thread Chris King
On 11/1/2010 5:20 PM, Alan Gauld wrote: "Chris King" wrote How do I completely shutdown a computer without administrative rights using a simple python script. If you have such a computer get rid of it, it fails the most basic test of a secure operating system. No program that runs upon

Re: [Tutor] Complete Shutdown

2010-11-01 Thread Alan Gauld
"Chris King" wrote How do I completely shutdown a computer without administrative rights using a simple python script. If you have such a computer get rid of it, it fails the most basic test of a secure operating system. No program that runs upon it could ever be relied upon! The whol