Mount an SMB / Samba share from the OS X command line

mount_smbfs -W workgroup //user@SERVER/folder ./mntpoint

umount ./mntpoint

from : http://snippets.dzone.com/posts/show/260