| | |
Transfter files from linux to windows
![]() |
•
•
Join Date: May 2008
Posts: 4
Reputation:
Solved Threads: 0
I use scp which is a secure copy over SSH. First get SSH installed and running on the Linux machine.
On the Windows machine install WinSCP
once thats connected it's almost as simple as drag and drop to transfer files using a a nice split screen for files.
But a script would be a little more challenging...off hand I know of a way with FTP but then you'd have to set up the Windows machine as a FTP server. I think we need more details on what you are trying to do, like does the Windows machine have any open shares or anything that we can use?
On the Windows machine install WinSCP
once thats connected it's almost as simple as drag and drop to transfer files using a a nice split screen for files.
But a script would be a little more challenging...off hand I know of a way with FTP but then you'd have to set up the Windows machine as a FTP server. I think we need more details on what you are trying to do, like does the Windows machine have any open shares or anything that we can use?
Last edited by icaruslnx; May 29th, 2008 at 12:03 pm.
•
•
Join Date: Feb 2008
Posts: 8
Reputation:
Solved Threads: 0
•
•
•
•
Hi,
I am new to this forum, I want to write a script which will transfer files from linux to windows,
on my Linux server ftp is disabled,
On your Linux machine create a script that will use smbclient to transfer your file which might look something like this:
======================= CAUTION : UNTESTED!!! =====================
I just wrote this on the fly...
====================== USE AT YOUR OWN RISK!!! ====================
#!/bin/bash
#
# cp2win
# Transfer a file to a windows machine using smbclient
# Script by hardwyrd (c) 2008
#
# Syntax:
# cp2win switch host-folder file remote-username remote-password
#
# Example:
# cp2win nologin \\\\myserver\myshare myfile.txt
# cp2win \\\\myserver\myshare myfile.txt myuser mypassword
#
# switch:
# nologin - turns on using login credential
#
# host-folder: must be in the format \\\\machine\folder
case $1 in
nologin )
smbclient $2 -c "put $3"
;;
* )
smbclient $1 -U $3%$4 -c "put $2"
;;
esac
Freelance Consultant
(Networking,Dev't,Linux,)
OpenSource Advocate/Evangelist
http://baudizm.blogsome.com
http://groups.google.com/group/Open-ITLUG
(Networking,Dev't,Linux,)
OpenSource Advocate/Evangelist
http://baudizm.blogsome.com
http://groups.google.com/group/Open-ITLUG
![]() |
Other Threads in the IT Professionals' Lounge Forum
- Previous Thread: confused, need help!
- Next Thread: URGENT help with registration/username/password
| Thread Tools | Search this Thread |
1gbit advertising advice amazon answers archive british broadband business businessprocesses career carrier censorship cern china cio collectiveintelligence connectivity consumer consumers corporateearnings datatransfer debtcollectors dictionary digg digital ebay ecommerce email employment environment facebook food government grid high-definition hottub infodelivery infotech intel internet interview ipod isp japan kindle lhc library malware marketing mit moonfruit news onlineshopping piracy piratebay pope porn program questions r&d religion remoteworking research retail security sex shopping simple skype smallbusiness smb sms socialmedia socialnetworking software softwareengineer spam speed spending startrek statistics stocks study stumbleupon survey tabletpc technology touch-screen touchscreen twitter uk videoinprint voips web webdeveloper windows words





