Sponsored Content
Top Forums Shell Programming and Scripting (yet another) copy files from windows to server question Post 302497080 by whbos on Wednesday 16th of February 2011 09:20:30 AM
Old 02-16-2011
(yet another) copy files from windows to server question

Hi all,

I spent the last few hours Googling for a solution without result, so here goes:

I have Windows server 'source' that produces files that need to be copied to an external Linux server 'target'. I initiate this process from AIX server 'jobrunner'. An additional step is a Linux server 'proxy' in our DMZ that functions as a (you guessed it) proxy.

I had a nice workflow going that first spawned an SSH client on 'jobrunner' that forwarded all TCP traffic to 'proxy'. That tunnel I then used for a tar-over-ssh :

Code:
smbclient //source/share -Tc - * | ssh remote "tar -xf -"

Now, I just found out that the company that hosts 'target' does not provide tar on their server (!) so I need to come up with something else. I would really like a solution that does not require copying the files from 'source' to either 'jobrunner' or 'proxy' first before pushing them to 'target'. I tried a few scenario's like creating a named pipe on 'jobrunner', smbget'ing to this pipe and scp-ing from it, but without succes.

Any suggestions?

Regards,
Willem.
 

10 More Discussions You Might Find Interesting

1. Solaris

Copy Folders from Sun Solaris to Windows server.

Hi, I have a folder with diff subfolders in my Unix box and now I want to ftp all the floders into my Windows machine. Is there any easy way to do that. When I use the "mget " cmd and try to FTP the files, it throws an error that the sub folder name does not exist. Can you someone help in... (3 Replies)
Discussion started by: chandu_kalari
3 Replies

2. Shell Programming and Scripting

copy files from remote server (B) to target server (A)?

Hi All, what is the comand to log off the remote server? I have 2 servers A, B. I need to find all files older than 7 days on server B and copy over to server A. My logic is: login the remote server: ================= ssh hostB cd /data/test find . -mtime -7 -ls | awk '{print... (4 Replies)
Discussion started by: Beginer0705
4 Replies

3. UNIX for Dummies Questions & Answers

Copy a windows CVS file to the unix server

I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies

4. Shell Programming and Scripting

Copy a directory from a server (UNIX) to a PC (Windows)

Hello, I already do some question about this topic. I already establish the conection from the server (Centus) whit the windows PC using SSH. Now I have two problems: 1- The server always ask me about a password to copy the files to the windows pc, I don't know how to avoid this, if someone can... (2 Replies)
Discussion started by: yeestrada
2 Replies

5. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

6. Shell Programming and Scripting

copy files from linux to windows

is there any way to copy files from linux to windoes with out mounting ideally using a script in linux or windows which ever possible (4 Replies)
Discussion started by: robo
4 Replies

7. Shell Programming and Scripting

Copy folder and files from unix server to linux server

We would be migrating unix solaries to Linux redhat. Basically source is unix and target is linux. i would like to copy entire file system unix/source/* to target linux/souce/* but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Discussion started by: balajikalai
8 Replies

8. Shell Programming and Scripting

Need Shell Script to copy files from hp UNIX to windows server 2008

Need Shell Script to copy files from hp unix to windows server 2008 I tried to google and found some options but nothing worked I want a script to copy a file in unix to windows server so I can schedule the script on daily basis.Please help me its more needful for me. Let me know if any... (4 Replies)
Discussion started by: Lucky2Bv
4 Replies

9. Shell Programming and Scripting

Copy files from Linux server to Windows server

Hi All, I am generating report in a Linux server and once the report is generated the report(.txt file) needs to be automatically saved in a Windows servers. So i am looking for a script to transfer the file automatically from Linux server to Windows server? Please advise. Thanks... (3 Replies)
Discussion started by: arunmanas
3 Replies

10. UNIX for Dummies Questions & Answers

Copy files from Linux server local windows machine using a shell script

Hello, I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine. Is this possible.? Currently it is being done manually using winscp (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies
corkscrew(1)							    Networking							      corkscrew(1)

NAME
corkscrew - Tunnel TCP connections through HTTP proxies SYNOPSIS
corkscrew PROXY PROXYPORT TARGETHOST TARGETPORT [AUTH_FILE] DESCRIPTION
corkscrew is a simple tool to tunnel TCP connections through an HTTP proxy supporting the CONNECT method. It reads stdin and writes to std- out during the connection, just like netcat. It can be used for instance to connect to an SSH server running on a remote 443 port through a strict HTTPS proxy. PROXY The name of the host running the HTTP proxy. PROXYPORT The port on which to connect on the proxy. TARGET The host to reach through the proxy. TARGETPORT The port to connect to on the target host. AUTH_ FILE The auth file is made of one single line containing your username and password in the form username:password OPTIONS
None. EXAMPLES
The common usage of corkscrew is to put the following line in ~/.ssh/ssh_config: ProxyCommand corkscrew proxy proxyport %h %p [<path to auth_file>] This will let the ssh connection go through the proxy with the help of corkscrew. ENVIRONMENT
None. FILES
None. SEE ALSO
ssh_config(5) AUTHORS
Program was written by Pat Padgett <agroman@agroman.net>. This manual page was written by Laurent Fousse <laurent@komite.net> for the Debian GNU system (but may be used by others). Updated by Jari Aalto <jari.aalto@cante.net>. Released under license GNU GPL version 2 or (at your option) any later version. For more information about license, visit <http://www.gnu.org/copyleft/gpl.html>. corkscrew 2012-03-26 corkscrew(1)
All times are GMT -4. The time now is 05:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy