Python script for remotely shutting down Windows PC from Linux ?

bruno at modulix onurb at xiludom.gro
Tue May 16 16:08:41 CEST 2006

diffuser78 at wrote:
>>ssh Admin at IP_ADDR shutdown -s
> Than indeed worked....Thanks
>  > use the subprocess module or shellutils to execute the above.
> I am a python newbie and how easy or difficult it is using the sub
> process module and shell utils.

It's as difficult as :
1. read the doc
2. write some code
3. test it
4. if you're in trouble, go back to 1.
5. if you're still in trouble, post here with relevant infos

bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"

More information about the Python-list mailing list