[linux] netsend?

Pagina: 1
Acties:
  • 42 views sinds 30-01-2008

  • Erik
  • Registratie: November 2003
  • Laatst online: 21-07-2025
Is er een soort van netsend voor onder linux? een commando?

ik heb gezocht, kwam op iets uit als smbclient, maar ik kon er niet achter komen hoe je daarmee berichten kunt sturen naar windows pc's.

ik draai suse 9.0

  • sebas
  • Registratie: April 2000
  • Laatst online: 16-12-2025
Ja. zoals je zegt, smbclient.
uit man smbclient:
-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 protocol.

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

You may also find the -U and -I options useful, as they allow you to control the
FROM and TO parts of the message.

See the message command parameter in the smb.conf(5) for a description of how to
handle incoming WinPopup messages in Samba.

Note: Copy WinPopup into the startup group on your WfWg PCs if you want them to al-
ways be able to receive messages.

Everyone complains of his memory, no one of his judgement.


  • Super_ik
  • Registratie: Maart 2001
  • Laatst online: 16:20

Super_ik

haklust!

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
./smbclient
Usage: ./smbclient service <password> [options]
Version 2.2.2
        -s smb.conf           pathname to smb.conf file
        -O socket_options     socket options to use
        -R name resolve order use these name resolution services only
        -M host               send a winpopup message to the host
        -i scope              use this NetBIOS scope
        -N                    don't ask for a password
        -n netbios name.      Use this name as my netbios name
        -d debuglevel         set the debuglevel
        -P                    connect to service as a printer
        -p port               connect to the specified port
        -l log basename.      Basename for log/debug files
        -h                    Print this help message.
        -I dest IP            use this IP to connect to
        -E                    write messages to stderr instead of stdout
        -U username           set the network username
        -L host               get a list of shares available on a host
        -t terminal code      terminal i/o code {sjis|euc|jis7|jis8|junet|hex}
        -m max protocol       set the max protocol level
        -A filename           get the credentials from a file
        -W workgroup          set the workgroup name
        -T<c|x>IXFqgbNan      command line tar
        -D directory          start from directory
        -c command string     execute semicolon separated commands
        -b xmit/send buffer   changes the transmit/send buffer (default: 65520)

smbclient -M hostnaam will do the trick :P

8<------------------------------------------------------------------------------------
Als ik zo door ga haal ik m'n dood niet. | ik hou van goeie muziek


  • Erik
  • Registratie: November 2003
  • Laatst online: 21-07-2025
Wat doe ik dan verkeerd? Hij zegt:

cannot resolve name [willekeurige hostname die ik intyp]

ik heb dit commando gegeven:
smbclient -M 'anne'

[ Voor 7% gewijzigd door Erik op 18-02-2004 22:52 ]


  • Barracuda
  • Registratie: Augustus 2000
  • Laatst online: 05-05-2023
het je wel DNS :?

probeer anders een -I en dan het IP

gratis af te halen SUN ultra1 compleet


  • Erik
  • Registratie: November 2003
  • Laatst online: 21-07-2025
Barracuda schreef op 18 februari 2004 @ 22:56:
het je wel DNS :?

probeer anders een -I en dan het IP
dat doet helemaal niks :?

ik typ in:

smbclient -I 192.168.0.1

en dan krijg ik zo'n usage geval, over hoe ik 't commando moet gebruiken....

Ff voor de duidelijkheid: ik heb nog nooit met linux gewerkt (nou ja, 1 weekje met redhat 8.0)

EDIT:
ik ben nog ff bezig geweest, ik krijg smbclient -L [ip-adres] wel aan de gang.... hij zegt prima wat de shares zijn van m'n ma en van m'n zusje's pc

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
smbclient -L anne
added interface ip=192.168.0.119 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        IPC$           IPC       Externe IPC
        Bureaublad     Disk
        SharedDocs     Disk
        Anne1          Disk
        C              Disk
        ADMIN$         Disk      Beheer op afstand
        C$             Disk      Standaard-share

        Server               Comment
        ---------            -------
        ANNE
        MARIEKE1

        Workgroup            Master
        ---------            -------
        WORKGROUP            MARIEKE1


maar:
code:
1
2
3
erik@linux:~> smbclient -M 'anne'
added interface ip=192.168.0.119 bcast=192.168.0.255 nmask=255.255.255.0
Cannot resolve name anne#0x3

[ Voor 67% gewijzigd door Erik op 18-02-2004 23:11 ]


  • Wilke
  • Registratie: December 2000
  • Laatst online: 18:25
Natuurlijk -I in combinatie met die andere dingen die je probeerde (duhh..)

Dit topic gaat dicht; de manpage lezen en zelf een klein beetje zoeken wordt wel verwacht in NOS...
Pagina: 1

Dit topic is gesloten.