Linux/smbclient
< Linux
smbclient
List shares on windows machine or samba server:
smbclient -L windows_box
Send message from Linux
echo "This is a test" | smbclient -M <computer> -U <any_name>
Connect to samba server (using ftp like commands)
smbclient -U [USER] \\\\machine\\share\\ smbclient -U [USER] //machine/share/ smbclient -U [USER]%[PASSWORD] //machine/share/
List directory and exit:
"dir somepath/" | smbclient -U [USER] //machine/share/
Samba
See Linux/Samba