Restart Linux System

Michael L Torrie torriem at chem.byu.edu
Tue May 22 12:15:02 EDT 2007


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, or run "init
6."  This requires root, though.  Without root there's no way to reboot
a linux system.

> 
>  
> 
> Thanks,
> 
>  
> 
> Rob
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list