Results 1 to 7 of 7
hi,
I want to FTP the last five days created files from windows server to unix server, my local server is unix my remote server is windows.
Thanks in advns....
- 09-29-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 2
FTP windows to unix
hi,
I want to FTP the last five days created files from windows server to unix server, my local server is unix my remote server is windows.
Thanks in advns.
- 09-30-2011 #2Just Joined!
- Join Date
- May 2011
- Location
- Malaysia
- Posts
- 39
If it's from your windows server to *nix, shouldn't you ought to be able to use windows explorer, select details listing and match the date and then ftp the files away? I guess it can be done with powershells or vbs but i'm rusty there tho so not able to help with that.
If it's from your *nix to windows server, use find utility, it can search files created for the last 5 days and it's matter of ftping it manually or scripting something so it pipes to a ftp client (lftp, ncftp, etc) and sends the files away.
hope that helps.
- 09-30-2011 #3Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
So do you want to do this in an automated fashion? I agree with aazkan that this should be a straight-forward shell script using lftp (if I understand correctly, the Unix box would be acting as the FTP client and the Windows box as the FTP server).
Once you have lftp (or whatever client you use) set up to run non-interactively, start an FTP session, and have it generate a file listing for the directory (that's a standard FTP command that the Windows FTP server will support) on the Windows box, sort the files by date, and grab what you want.
I'd also recommend the Net::FTP module, for use with Perl - it's even easier than lftp IMHO.
- 10-04-2011 #4Just Joined!
- Join Date
- May 2011
- Location
- Malaysia
- Posts
- 39
Hi Sunder,
Have a look at a reply from atreyu for a simillar issue:
http://www.linuxforums.org/forum/pro...ive-error.html
This ought to give you an idea to start on your shell script on your linux host.
Hi Atreyu,
I hope you dont mind me putting your link/solution. I thought it ought to be able to help Sunder with a bit of modification.
You're very knowledgeable based from your replies and also, thank you!. One of your replies to a thread helped me with a problem i had as well.
- 10-04-2011 #5Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Hey, glad to be of help, and link away!
I can't wait for the time (soon to come, I'm sure) when I'm googling for how to fix some frustrating bugger on my Linux box and I stumble across an answer on a thread that I gave myself and forgot...
- 10-04-2011 #6Just Joined!
- Join Date
- May 2011
- Location
- Malaysia
- Posts
- 39
By any chance you're a RHSE? Am thinking of getting certified but heck, it's expensive where I'm at.
Thank God there's Linux forum and guys/girls (i think you're a dude tho)
- 10-04-2011 #7Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
I am (a dude and an RHCE), but I was fortunate enough to be sponsored (for the cert, that is), so I didn't have to cough up. It may be a well-respected cert to have under your belt, and I am glad to have it, but I wouldn't *personally* put too much stock in it, as there is no accounting for experience when it comes to Linux. But prospective employers and head-hunters love the damn things (certs), unfortunately.


Reply With Quote