(yet another) copy files from windows to server question


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting (yet another) copy files from windows to server question
# 1  
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.
# 2  
Old 02-16-2011
Is maybe mount.smb and sudo available? If so, you could temporarily mount the share (using sudo) in a directory, scp the files through your tunnel, and unmount it again after you're finished.
# 3  
Old 02-16-2011
Hi pludi,

The AIX Samba package I'm using (pware53-64.samba.rte) does not include mount.smb, mount.cifs or anything like that. But I dug a little deeper and found that AIX actually knows how to mount Windows shares, it's just that the required packages are not installed by default. So, after installing the bos.cifs_fs.smit and bos.cifs_fs.rte packges I got my share mounted. Thanks for pointing me in the right direction!

Regards,
Willem.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question