Anzeige:
Ergebnis 1 bis 3 von 3

Thema: smbclient per sh skript steuern

  1. #1
    Registrierter Benutzer
    Registriert seit
    21.10.2000
    Ort
    Deutschland
    Beiträge
    64

    Question smbclient per sh skript steuern

    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
    Geändert von MrIch (07-02-2002 um 13:31 Uhr)

  2. #2
    Registrierter Benutzer
    Registriert seit
    30.12.2001
    Beiträge
    444
    Mal abgesehen davon das es bei mir generell nicht funktioniert steht es in der smbclient manpage drin.

    Code:
    -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

  3. #3
    Registrierter Benutzer
    Registriert seit
    04.05.2001
    Ort
    Köthen
    Beiträge
    33

    Cool

    hi,

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

    mfg,
    Matze

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •