| | |
python shutdown
![]() |
•
•
•
•
does anyone know how to shutdown a computer on windows XP (using python of coursegiven the IP address and the computer name (probably don't need it, though)? I don't want to use os commands like os.system("shutdown -i"). Thanks in advanced!
python Syntax (Toggle Plain Text)
import os #run os based command like opening notepad os.system("notepad")
Atheist: God is man made imagination, he doesn't exist!
Theist: It's okay, can you imagine anything else that doesn't exist?
"Try to be expert in everything and you become expert in nothing" - Me
---------------------------------
Windows Vista Home Premium SP2| MINGW 4.4.0|PHP 5.3.1|Python 2.6.4|JDK 1.6
Theist: It's okay, can you imagine anything else that doesn't exist?
"Try to be expert in everything and you become expert in nothing" - Me
---------------------------------
Windows Vista Home Premium SP2| MINGW 4.4.0|PHP 5.3.1|Python 2.6.4|JDK 1.6
•
•
Join Date: Nov 2007
Posts: 148
Reputation:
Solved Threads: 33
Have you looked at the code here?
http://code.activestate.com/recipes/360649/
http://code.activestate.com/recipes/360649/
![]() |
Similar Threads
- Shutdown program (Python)
- Logging off with Python (Python)
- server/client issues (Python)
- log message printed twice....why?? (Python)
- Attempting to reconnect socket fails (Python)
- Python GUI to configure Cisco device (Python)
- GUI with calculator. (Python)
- how to kill a thread in python? (Python)
Other Threads in the Python Forum
- Previous Thread: urllib tuts..
- Next Thread: While Loop
Views: 2103 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Python
application array beginner bluetooth c++ c/c++ change character class clear client code command convert count create csv ctypes database dictionary django dll error examples excel exe extensions fdlib file float format framework ftp function graphics gui homework image images import input library line linux list lists logging loop loops microcontroller mouse multiple mysql mysqldb number numbers output parse parsing path port prime processing program programming py2exe pygame pyglet pygtk pyqt python random raw_input recursion recursive redirect remote scrolledtext server socket ssh stdout string strings table terminal text thread threading tkinter transparency tuple tutorial ubuntu unicode variable variables web windows wxpython




given the IP address and the computer name (probably don't need it, though)? I don't want to use os commands like os.system("shutdown -i"). Thanks in advanced! 

