Anmelden

Archiv verlassen und diese Seite im Standarddesign anzeigen : smbclient per sh skript steuern



MrIch
07-02-2002, 13:29
Hallo!

Ich möchte gerne Windows "popup Messages" per Skript verschicken können, ich stelle mir z.B. vor so etwas in die ip-up einzutragen um user zu informieren wenn eine I-Net Verbindung aufgebaut wurde, ...

Doch wie müßte ich so ein skript bauen, dass z.B. strg + d drückt um die nachricht abzuschicken?

__________________________Beispiel____________
smbclient -M C130226
added interface ip=10.242.129.32 bcast=10.242.131.255 nmask=255.255.252.0
Got a positive name query response from 10.242.130.226 ( 10.242.130.226 )
Connected. Type your message, ending it with a Control-D
Verbindung aufgabeut!
sent 22 bytes
____________________________________________

danke schonmal

fork
07-02-2002, 17:26
Mal abgesehen davon das es bei mir generell nicht funktioniert steht es in der smbclient manpage drin.



-M NetBIOS name
This options allows you to send messages, using the "WinPopup" protocol, to another computer. Once a connection is
established you then type your message, pressing ^D (control-D) to end.

If the receiving computer is running WinPopup the user will receive the message and probably a beep. If they are
not running WinPopup the message will be lost, and no error message will occur.

The message is also automatically truncated if the message is over 1600 bytes, as this is the limit of the proto*
col.

One useful trick is to cat the message through smbclient. For example: cat mymessage.txt | smbclient -M FRED
will send the message in the file mymessage.txt to the machine FRED.


Gruß
fork

Matzetronic
08-02-2002, 08:36
hi,

ich habe das immer so gemacht:
echo 'Hello World'|smbclient -M C130226

mfg,
Matze