Added to jungerl: esmb
Torbjorn Tornkvist
tobbe@REDACTED
Wed Mar 3 01:33:01 CET 2004
Hi,
I have added a SMB protocol implementation to jungerl.
It implements a subset of the (in)famous SMB protocol,
so you can now say goodbye to Samba...well perhaps not.
It is still a bit rough around the edges but I have implemented
a little example program mimicking the 'smbclient' program,
see below.
Cheers, Tobbe
(Ps. Sorry for the indentation, it sucks using Mozilla...)
-----------------------------------------------------------------
#
# NB: 'korp' is a Win2000 server
#
erlang/esmb> erl -pa ./ebin
Erlang (BEAM) emulator version 5.2.b2 [source] [hipe]
Eshell V5.2.b2 (abort with ^G)
1> esmb:client("//korp/tobbe", "tobbe").
<0.30.0>
Password: xxxxxx
//> cd kalle
//kalle/> ls
. SIZE 0 IS [dir]
.. SIZE 0 IS [dir]
COOL SIZE 0 IS [dir]
HEJSAN SIZE 0 IS [dir]
SVEJSAN SIZE 0 IS [dir]
//kalle/> rmdir cool
//kalle/> ls
. SIZE 0 IS [dir]
.. SIZE 0 IS [dir]
HEJSAN SIZE 0 IS [dir]
SVEJSAN SIZE 0 IS [dir]
//kalle/> mkdir cooler
//kalle/> ls
. SIZE 0 IS [dir]
.. SIZE 0 IS [dir]
COOLER SIZE 0 IS [dir]
HEJSAN SIZE 0 IS [dir]
SVEJSAN SIZE 0 IS [dir]
//kalle/> cd cooler
//kalle/cooler/> ls
. SIZE 0 IS [dir]
.. SIZE 0 IS [dir]
//kalle/cooler/> put gunnar.txt
Writing....
Wrote, res={ok,15488}
//kalle/cooler/> ls
. SIZE 0 IS [dir]
.. SIZE 0 IS [dir]
GUNNAR.TXT SIZE 15488 IS []
//kalle/cooler/> rm gunnar.txt
//kalle/cooler/> ls
. SIZE 0 IS [dir]
.. SIZE 0 IS [dir]
//kalle/cooler/> cd ..
//kalle/> ls
. SIZE 0 IS [dir]
.. SIZE 0 IS [dir]
COOLER SIZE 0 IS [dir]
HEJSAN SIZE 0 IS [dir]
SVEJSAN SIZE 0 IS [dir]
//kalle/> help
Commands: '?', cat, cd, get, help, ls, mkdir, quit, put, rm, rmdir
//kalle/>
-------------------------------------------------------------------------
More information about the erlang-questions
mailing list