Windows to Linux File Transfer (Automatically)

fred smith fredex at fcshome.stoneham.ma.us
Sat Oct 23 03:37:50 UTC 2010


On Sat, Oct 23, 2010 at 11:12:42AM +0800, sunhux G wrote:
> Thanks Humphrey, I did mention about Winscp earlier in the thread.
> 
> What I needed is something that runs in Linux at command line level
> (so that I can put in crontab).  I do have winscp & I'm aware winscp
> can handle 'ascii'.  The fact that winscp has 'ascii' built in goes to
> show 'ascii' mode is still useful.
> 

I haven't seen (unless I've overlooked it) anyone suggesting that
you could use smbclient on linux to script file transfers to or from
windows. assuming it has a way to find out which files you need to
pull over from windows to linux, it wouldn't be very hard to do, either.

along with a little bash scripting you could make a fairly powerful
file transfer tool out of it.

'man smbclient' gives a moderately helpful man page, including a 
bunch of examples of how to use it.

I've used it in cron jobs, at work, to push files from linux over
to windows, and it works well for that.


-- 
---- Fred Smith -- fredex at fcshome.stoneham.ma.us -----------------------------
    "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of
     heaven, but only he who does the will of my Father who is in heaven."
------------------------------ Matthew 7:21 (niv) -----------------------------




More information about the redhat-list mailing list