Send `net send` commands like on Windows using Linux

On Windows Systems you can send short messages using the net send command. This is also possible using smbclient on Linux:

smbclient -M Hostname_or_IP "nachricht"

You can also pipe-in the text to send:

echo "Nachrichtentext" | smbclient -M Hostname_or_IP

Or directly send textfiles up to 1.6 KB:

cat msg.txt | smbclient -M Hostname_or_IP

Comments