WinPops
Peter Gsellmann
peter-gsellmann at eunet.at
Thu Jun 1 17:16:17 EDT 2006
Roger Upole wrote:
>
> "Hari Sekhon" <sekhon.hari at googlemail.com> wrote in message
> news:mailman.6230.1148640634.27775.python-list at python.org...
>> Hi,
>> Is there a way of sending winpops (Windows Pop-Up / Net Send messages)
>> in python?
>>
>> Perhaps some library or something that I can use under both Windows and
>> Linux?
>>
>> Hari
>
> On Windows, you can use win32net.NetMessageBufferSend.
>
> Roger
>
On Linux, i use the smbclient binary:
from subprocess import *
q=Popen(['smbclient','-M','maggy'],stdin=PIPE)
q.stdin.write('hello!')
q.stdin.close()
q.wait()
Peter
More information about the Python-list
mailing list