ftp

Prevent ftplib from Downloading a File in Progress?

We have a ftp system setup to monitor/download from remote ftp servers that are not under our control. The script connects to the remote ftp, and grabs the file names of files on the server, we then check to see if its something that has already been downloaded. If it hasn't been downloaded then we download the file and add it to the lis...

PHP/FTP ftp_put() throws weird error messages - what to do?

I use ftp_put / ftp_nb_put to upload files from my PHP server to another machine. I am frequently (90% of the time) getting absurd error messages like: Warning: ftp_nb_put(): 2 matches total Warning: ftp_nb_put(): Transfer complete Warning: ftp_nb_continue(): Opening BINARY mode data connection Now errors like "no such directory" or ...

Viewing more than 10,000 files on a FTP file server?

I've queued up over 10,000 files to be uploaded to a UNIX based FTP server using a freeware (Windows based) FTP client which as far as i can see has finished without error. Now, when i view the remote directory (using the Windows software) the output is truncated to 10,000 filenames. This ever occurs when i use the Windows command line ...

What characters are disallowed in an ftp Delete command?

I am ftp'ing files from an external server, then deleting them on the external server, and one file failed because there was a space in the filename. I changed my ftp delete command to have quotes around the filename. ftpStream.WriteLine("delete """ & FileToDelete & """") But, are there other characters that a user might use in their...

Best FTP server for Windows with Active Directory integration

I'm looking for an FTP server product with Active Directory integration for installation on a Windows server. I have been looking at different products, but I have a hard time finding a product, which has a decent Active Directory integration. I need something that integrates properly with Active Directory groups and is able to "merge" ...

Computing progress (bar) using GZipStream

I'm reading a .gz file from some slow source (like FTP Server) and am processing the received data right away. Looks something like this: FtpWebResponse response = ftpclientRequest.GetResponse() as FtpWebResponse; using (Stream ftpStream = response.GetResponseStream()) using (GZipStream unzipped = new GZipStream(ftpStream, CompressionMo...

IIS6 FTP ignores NTFS file permissions?

In an Intranet environment, I have an FTP server set up for publishing files to websites. A user connected to the production FTP server (allowed) to publish files (allowed) then navigated to a folder that was not hers (allowed) then wrote files there (allowed by FTP, but not by NTFS.) Only Administrators and System have rights to Write ...

Using DOS Prompt and via' FTP copying files on to the server

Hi Guys, I would like when we Copy files on to the server via FTP the size of the file changes. What is the reason behind this. Does the change in the file size can make the files corrupt and the FTP process Fails ? ...

Trying to find a simple way to do upload only modified files through FTP.

Need to find a way to upload files to my server through FTP. But only the ones that have been modified. Is there a simple way of doing that? Command line ftp client or script is preferred. Thanks, Jonas. ...

best way to write a polled FTP download in C#

Hi there, I currently have a manual process where we upload a text file to a business partner, they have an automated process which reads in the file, processes it and then generates a 'results' log file any where from 3-10minutes (typically) after the initial upload. I need to automate this process via a .NET application. I already hav...

is it possible to make nant run a publish on web application project

is it possible to make nant run a publish on mvc project or a good old web application project and after the publish make nant FTP the files to the web server UPDATE: found the solution to the ftp problem Nant ftp task thanks Paco what i mean by publich is there a command line application or nant task that can public like visual studio...

Need help with a .bat script for parsing W3C logs

Im trying to get a value (IP address) from a W3C logfile (kinda like a text file). This is what I have so far but with no luck: Set filename=ex%date:~-2,4%%date:~-10,2%%date:~-7,2%.log For /F "tokens=2 delims=: . " %%A in ('E:\WINDOWS\system32\LogFiles\MSFTPSVC6141885\%filename%') do (Set ip=%%A) and the log file looks like: # So...

FTP not uploading last 4 bytes

I have a bash script to upload some files to my webserver. The problem is that it seems to assume that when they get to the webserver they are missing the final 4kb of the file. On my computer the file is listed as 8kb (rounded up because blocks are 4kb) yet only 4kb are uploaded. Here's the funny/confusing part, this only affects the ...

Setting up passive FTP (IIS6) on Windows Server 2003

I am having trouble setting up passive FTP on IIS 6. I used this instruction: http://www.velikan.net/iis-passive-ftp/ When I tried to upload a file through the FTP, I got the error: 425 Can't open data connection. : /index.html The interesting thing is that from the server, I can see the index.html file is already created but the fi...

How can download via FTP all files with a current date in their name?

I have a file format which is similar to "IDY03101.200901110500.axf". I have about 25 similar files residing in an ftp repository and want to download all those similar files only for the current date. I have used the following code, which is not working and believe the regular expression is incorrect. my @ymb_date = "IDY.*\.$year$mon$...

differences between SFTP and "FTP over SSH"

Looking for an SFTP client in c# SSH File Transfer Protocol (SFTP). I've come across these two suitable projects - one two. While trying to understand the basics, I came across this confusing Wikipedia article. What is difference between SFTP and FTP over SSH? No library seems to give support for "FTP over SSH", if it is different. ...

SSH - a way to transfer files without opening a separate SFTP session?

Not really a programming question, but relevant to many programmers... Let's say I have opened an SSH session to another computer. remote:html avalys$ ls welcome.msg index.html readme.txt remote:html avalys$ Is there any command that I can type in my remote shell that will immediately transfer one of the files in the current...

Calling stored procedure from web application on UNIX throwing error on xp_cmdshell

Hey all, I'm pulling my hair out on this one. I've checked all my permissions, on both the database server (SQL Server 2000) and the file system to ensure that what I am trying to do should be possible. Here's the situation: I have a Java EE web application running on a Tomcat server on my company's intranet. Long story short, this app...

How to delete files via FTP when directory has over 100,000 files?

I went to upload a new file to my web server only to get a message in return saying that my disk quota was full... I wasn't using up my allotted space but rather my allotted FILE QUANTITY. My host caps my total number of files at about 260,000. Checking through my folders I believe I found the culprit... I have a small DVD database a...

Ftp GetFileSize randomly throws FTP error 503 (Bad Sequence of Commands)

To get the file size for every file in a list of files, I'm using the following code: foreach (String f in files) { UriBuilder ftpUri = new UriBuilder("ftp", ftpServer, -1, ftpPfadZuLogDateien + "/" + f); FtpWebRequest ftpclientRequest1 = (FtpWebRequest)WebRequest.Create(ftpUri.Uri); ftpclientRequest1.Method = WebRequestMethods.Ft...