ftp

Cocoa NSStream TCP connection to FTP

Hi, I'm new to Cocoa, but not to programming. Recently I decided I wanted to write a FTP client for Mac, and so I first made it in the language I'm most comfortable in (on Windows), and then moved on to Cocoa when I had the workings of FTP communications down. My question is (apparently) a bit controversial: How do I establish a read/w...

How can I get and handle a return codes in a C program if sftp fails to put the file in a sftp server?

How can we get and handle the sftp return codes in a C program if sftp fails to put the file in a server? We need to transfer the files again if sftp fails to put it in the sftp server. ...

Cocoa Read NSInputStream from FTP connection

Hi, I (apparently) manage to make a ftp connection, but fail to read anything from it, and with good cause: I don't reach the reading until the connection has timed out. Here's my code: header: NSInputStream *iStream; NSOutputStream *oStream; implementation: NSHost *host = [NSHost hostWithAddress:@"127.0.0.1"]; [iS...

A 'do' statement at the end of my perl script never runs

In my main script, I am doing some archive manipulation. Once I have completed that, I want to run a separate script to upload my archives to and FTP server. Separately, these scripts work well. I want to add the FTP script to the end of my archive script so I only need to worry about scheduling one script to run and I want to guarantee...

PHP - ftp_get only works once

I'm connecting to an ftp server that I have no control over, and I'm pretty sure is using something old and outdated due to other issues I've run into. I'm simply using this code in a loop to get all the files in a directory. ftp_get($this->conn_id, $remote, $local, FTP_ASCII); The first time all goes well, but after that I get this ...

python simpleftpserver module ftp

i need a simple implementation of ftp that i can setup quickly for some experiments. is there an equivalent of python -m SimpleHTTPServer for ftp. Google sarch didn't help. i just need a simple implentation of ftp that is easy to setup. (so i don't have to go through the installation trouble for a lot of PC's). ...

PHP FTP Upload thousands of files

Hi, I've written a small FTP class which I used to move files from a local server to a remote server. It does this by checking an array of local files with an array of files on the remote server. If the file exists on the remote server, it won't bother uploading it. The script works fine for small amounts of files, but I've noticed tha...

FTP - way to programatically determine time remaining or bytes transfered?

Hi all I want to make an FTP connection (ideally using Coldfusion 8, but Java is fine too) that will copy a file to a remote server. Crucially however, I want to know how many bytes have been transferred so I can give some feedback to the user. Is this possible, and if so what FTP API would you recommend as I understand the Sun imp...

snort ftp command monitioring

Right well I'm working on an IDS using Snort. To be run on the client side. At the momoent I'm trying to create alerts when certain FTP commands are issued and yet it does not seem to catch them. The rest of my rules file is fine at works for detedting portscans and logins to facebook. Heres what I've done: preprocessor sfportscan: prot...

Previous Next It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

I have been given web space for a project I am creating for my boss. However, when I uploaded my aspx pages to the site through FTP (on Windows Vista), and navigated to the site, I received the following error: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error ...

FTP FileWatcher

So, I am in this little predicament where I am stuck watching a few ftp folders to see if they have new files added to them. If they do, it needs to throw an event with the file name. Thereby telling something else to download that file. This is a pretty simple object to make, I was just curious if anyone knew how expensive this operati...

MGet on file without extension

In FTP, when I mget *, it only gets file with extension *.xxx and ignores those files without any extension, e.g. file name ACC001. How can I get those files without extension? ...

Android Browser FTP URL

I didn't post this but I have the same question as the person who did. I have a file stored on an ftp the URL to it is like this: "ftp://something.etc.etc" It seems that the android browser is unable to handle such links. You receive an error when trying to download the file from my link. Is there a way to download files from an ftp ur...

Downloading a Directory Tree with FTPLIB

This will not download the contents of sub-directories; how can I do so? import ftplib import configparser import os directories = [] def add_directory(line): if line.startswith('d'): bits = line.split() dirname = bits[8] directories.append(dirname) def makeDir(archiveTo): for dir in directories: newDir = os.path.join(archi...

Php deployment to remote server using FTP from SVN after each commit

I coudn't find the solution for Php deployment to remote server using FTP from SVN after each commit. How can I upload to server by FTP the only added or edited files and delete the deleted files from SVN I think about write post-commit script... ...

Nobody owner (99 99) in FTP caused by php functions !

I have a script (Joomla) that creates files and directories on the server. The problem is that it creates them under owner 99 99 (nobody) and after I can't delete or modify them by FTP without the help of the server admin. I think that is move_uploaded_file function of php. Is there any solution of this problem by the WHM or by the ser...

How to securely transfer

I have two servers -- a backend server, and a frontend server. Every night, the backend server generates static .html files, which are then compressed into .tar format. I need to write a script that resides on the backend server that will transfer the .tar file to the frontend server, and then decompress that .tar file into to the pu...

Recursive FTP directory listing in shell/bash with a single session (using cURL or ftp)

I am writing a little shellscript that needs to go through all folders and files on an ftp server (recursively). So far everything works fine using cURL - but it's pretty slow, becuase cURL starts a new session for every command. So for 500 directories, cURL preforms 500 logins. Does anybody know, whether I can stay logged in using cUR...

how to fetch a range of files from an FTP server using C#

hello all, i'm stuck at a point where i am using a wildcard parameter with the FtpWebRequest object as suck FtpWebRequest reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/" + WildCard)); now this works fine, however i now want to fetch a specific range of files. say the file naming structure is *YYY...

Fastest way to deploy rails apps with Passenger

I am working on a Dreamhost server with Rails 2.3.5. Every time I make changes to a site, I have to ssh into the site, remove all the files, upload a zip file containing all the new files for the site, unzip that file, migrate the database, and go. Something tells me there's a faster way to deploy rails apps. I am using mac Time Machin...