RE: Restart Linux System

2007-05-23 Thread Sander Steffann
Hi, > > Probably not. You need to just spawn the "reboot" command, or run > > "init 6." This requires root, though. Without root there's no way > > to reboot a linux system. > > ...unless you run shutdown(8) or reboot(8) setuid root (reboot is > kinda harsh though, btw). It's not that bad. Re

Re: Restart Linux System

2007-05-22 Thread Michael L Torrie
On Tue, 2007-05-22 at 09:34 -0700, Alexandre Gans wrote: > > You can use sudo on your user or the bit suid in your application... Just know that you cannot setuid any shebang executable, of which python scripts usually are. -- http://mail.python.org/mailman/listinfo/python-list

Re: Restart Linux System

2007-05-22 Thread Michael Bentley
On May 22, 2007, at 11:15 AM, Michael L Torrie wrote: >> I’m looking to restart a Linux system from my python application. >> What’s the best way to achieve this, is there something in the OS >> module? > > Probably not. You need to just spawn the "reboot" command, or run > "init > 6." This r

Re: Restart Linux System

2007-05-22 Thread Michael L Torrie
On Mon, 2007-05-21 at 09:25 +0100, Robert Rawlins - Think Blue wrote: > Hello Guys, > > > > I’m looking to restart a Linux system from my python application. > What’s the best way to achieve this, is there something in the OS > module? Probably not. You need to just spawn the "reboot" command