Menu

First file release

This release is an alpha release with no installer. Extract the .zip file to anywhere and download the publictest.scp (this is the script file I've been using to test). This test script will connect to an actual FTP site that you can use to test with that has the directory structure the script is looking for plus a couple others for future purposes. The main point beyind this program is that it will process the script line by line and attempt to execute the commands either on the ftp server or the local file system. Most functions do not work yet such as any SHELL filesystem manipulation, the trace and it has only enough error handling to know that you can't have more than on open connection.

Commands available:

MDELETE {file or file mask to delete}
MPUT {file mask of files to upload}
PUT {file to upload}
GET {file to download}
RENAME {source file}{destination file}
MGET {file mask of files to download} - not tested completely
OPEN {site name}
USER {username}
PASS {password}
CD {change directory}
LCD {change local directory}
**Any raw FTP command that the server will accept** - This function is not guaranteed and functions like this: If the program does not recognize the command it will attempt to send it to the server. If the command fails a messege will be logged to the file and the console.
LOG {logfile name} - this will create a log if one doesn't exist or open it if it exists already and append to it
SHELL ECHO - this is actually two commands but will print a line to the console only of any text following the space after the ECHO keyword.
ONERROR {onerror action} - doesn't actually work but will set the onerror action, intended for a later build
ONSUCCESS {onsuccess action} - doesn't actually work but will set the onsuccess action, intended for a later build
GOTO {label name} - this command can also follow an ONSUCCESS or ONERROR command but won't work. GOTO alone will however attempt to move the script execution to the label name if found otherwise a log messege will be written.
Labels can be set with a colon ":" and then the label name. Can be used in conjunction with the GOTO statement.
CLOSE - will close the ftp connection and wait for another connection or exit the program if no other lines in the script exist

Blank lines can be used through the script but white space is not yet an option, so all commands will need to start at the beginning of each new line.

Hope this is a useful semi documentation of this "release"!

UPDATE!!!

A word of note for those that may attempt to use this for binary transfers. This mode is not yet supported due to the nature of this program transfering ASCII files. Will try to work in the next release a way of changing the transfer method on the fly with the ftp script.

Posted by marq 2006-03-21

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.