(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 :
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.
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.
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!
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)
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)
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)
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)
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)
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)
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)
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)
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)