tribble.net.ftp.shell
Class FTPCommandInterpreter

java.lang.Object
  extended by tribble.net.ftp.shell.FTPCommandInterpreter

public class FTPCommandInterpreter
extends java.lang.Object

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

Usage

java tribble.net.ftp.shell.FTPCommandInterpreter [-option...] file

Options

-Dp
Debug: display the compiled parse tree.

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

-Le
Limit the execution to only 1,000 commands.

-ne
Do not execute, only compile the command script.

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

-v
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.

Since:
API 1.0, 2007-04-05
Version:
$Revision: 1.6 $ $Date: 2007/08/12 18:35:26 $
Author:
David R. Tribble (david@tribble.com).

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

main

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

Usage: see Usage above.

Throws:
java.lang.Exception
Since:
1.1, 2007-04-05

stop

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.

Since:
1.3, 2007-05-05