Ajay Chowdary Kandula
asked on
How to copy files from linux to windows with a shell script
*** Please Help .. Very Important
Would like to know how to transfer a file using shell script from windows to unix box
and later execute the script which would transfer the file by picking it up from my windows machine locally and later place it at the destination which is a unix box
please let me know the script and also how to execute the steps
if any links available please post.
Would like to know how to transfer a file using shell script from windows to unix box
and later execute the script which would transfer the file by picking it up from my windows machine locally and later place it at the destination which is a unix box
please let me know the script and also how to execute the steps
if any links available please post.
if you go the Samba Route....
Batch file instructions for copy/paste:
http://www.ehow.com/how_6830153_copy-paste-batch-file.html
NOTE: You would just copy from the location and then paste to whatever drive/location you mapped the Samba share to.
For the samba setup I would good for instructions for the specific version of Unix you have. Also, google on how to map the share to your Windows machine. Should be easy enough.
Batch file instructions for copy/paste:
http://www.ehow.com/how_6830153_copy-paste-batch-file.html
NOTE: You would just copy from the location and then paste to whatever drive/location you mapped the Samba share to.
For the samba setup I would good for instructions for the specific version of Unix you have. Also, google on how to map the share to your Windows machine. Should be easy enough.
ASKER
Please help me with the script to copy CSV file from windows machine to a unix machine
I have the credentials and the location to place the file at
I am doing using WINSCP and it gives a ^M after every record
I have the credentials and the location to place the file at
I am doing using WINSCP and it gives a ^M after every record
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can use the pscp command line utility from the putty package:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
ASKER
Thanks for the Comment Expert!!!
1) If the unix server is setup with Samba just mount the drive to your windows server then use a batch file with normaly copy commands. If not it might be worth looking into settting Samba up.
2) If your unix box has FTP or SCP setup you can just write a script that connects and copies files over.
3) NFS (http://support.microsoft.com/kb/324060) - Not familiar with this.