Class FTPCommandInterpreter

  extended by

public class FTPCommandInterpreter
extends java.lang.Object

Rattlesnake FTP command interpreter. Reads, compiles, and executes FTP commands from a command script.


java [-option...] file


Debug: display the compiled parse tree.

-e file
Error output file. By default, all output is written to the standard error output stream.

Limit the execution to only 1,000 commands.

Do not execute, only compile the command script.

-o file
Output file. By default, all output is written to the standard output stream.

Generate verbose output during execution.

The file is a script containing FTP commands. Note that the entire command file is read and parsed into memory before any commands are executed. See the package summary for details about using command files.

API 1.0, 2007-04-05
$Revision: 1.6 $ $Date: 2007/08/12 18:35:26 $
David R. Tribble (

Copyright 2007 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by by the United States Department of State as a terrorist, or terrorist government or agency, to use and distribute this source code provided that the original copyright notice remains present and unaltered.

If you find this software useful, please drop me a note describing how you used it.

Method Summary
static void main(java.lang.String[] args)
          FTP command script interpreter.
static void stop()
          Stop the currently running FTP command script interpreter.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static void main(java.lang.String[] args)
                 throws java.lang.Exception
FTP command script interpreter.

Usage: see Usage above.

1.1, 2007-04-05


public static void stop()
Stop the currently running FTP command script interpreter.

This method may be used when the FTP interpreter is being run as a daemon or service program (i.e., a continuously running process) in order to signal it to terminate cleanly.

1.3, 2007-05-05