Best way to interact with samba

Hi all,
I need to move some files from a linux to a widnows machine.
So i though to use something which interacts with samba.
I looked at sambala and sambal gems but both gave me some errors (I’m
using ruby 1.9.3)
[sambala]
…/lib/ruby/gems/1.9.1/gems/abundance-1.3.5/lib/toolshed.rb:113:in
socket_path': undefined methodcatname’ for File:Class (NoMethodError)

[sambal]
./samba_test.rb:11:in <main>' from /opt/ruby-1.9.3-p374/lib/ruby/gems/1.9.1/gems/sambal-0.1.2/lib/sambal.rb:46:ininitialize’
from ./samba_test.rb:11:in new' from ./samba_test.rb:11:in

Is there any further documentation about that?
Do you have any other suggestion to do what I need?

Thanks

Mauro

I need to move some files from a linux to a widnows machine.
…SNIP…
Do you have any other suggestion to do what I need?

If your linux box is running an ssh server you don’t need samba. Simply
use the putty tools pscp or psftp from:

PuTTY: a free SSH and Telnet client

from the windows machine. Typical usage:

list available files

pscp -ls mauro@xubuntu:/home/mauro/downloads

move the file

pscp mauro@xubuntu:/home/mauro/downloads/big_file big_file

pageant is putty’s ssh authentication agent.

Jon

Jon F. wrote in post #1095978:

If your linux box is running an ssh server you don’t need samba. Simply
use the putty tools pscp or psftp from:

Unfortunately I need to transfer files from linux to windows where the
linux start the connection.
On the windows box there isn’t any ssh server and any nsf server… just
“pure” windows.
That’s why I thought to use CIFS/SAMBA.

Mauro

You don’t need to interact with Samba do you ?
Couldn’t you just mount the samba shares manually/permanently/from a
bash script and then access them like any other directory on the linux
box from Ruby ?

cheers,
Tony.

Subject: Re: Best way to interact with samba
Date: sab 09 feb 13 01:44:10 +0900

Quoting M. Mauro ([email protected]):

Unfortunately I need to transfer files from linux to windows where the
linux start the connection.
On the windows box there isn’t any ssh server and any nsf server… just
“pure” windows.

Apparently, there is a free SSH server for windows:

I have no idea if/how it works, since I don’t do windows…

Carlo

Mauro Mauro wrote in post #1095979:

Jon F. wrote in post #1095978:

If your linux box is running an ssh server you don’t need samba. Simply
use the putty tools pscp or psftp from:

Unfortunately I need to transfer files from linux to windows where the
linux start the connection.
On the windows box there isn’t any ssh server and any nsf server… just
“pure” windows.

Is the samba setup working? Try browsing the windows box using
smbclient or your file manager via something like
smb://192.168.0.5/myshare

If that works you should be able to script smbclient directly from
ruby rather than needing a gem.

Jon