eSubmit
eSubmit is a command line program that will copy the standard input to a directory or a Websphere message queue. Optionally it will also create a eFORMz command file that will specify how to process the data file. It works in one of two ways.
The first way is to use command line parameters. They are:
-d <directory> | Specify output directory |
-f <filemask[:disposition>] | Specify file name and optional disposition |
-mq <host>;<port>;<channel>;<queue manager>;<message queue>;<userid>;<password> | Specify MQ queue |
-mqm <file format> | Specify message format |
-rd <remote directory>;<host>;<port>;<user>;<password> | Specify remote (SFtp) output directory |
-p <project> | Specify project |
-lpr <queue>;<title>;<lpd host>[;<lpd port>] | Send data to an LPD Service |
-slp <queue>;<title>;<lpd host>;<lpd port>;<ssh host>;<ssh port>;<user>;<password> | Send data to an LPD Service via SSL |
-t <printer> | Print (Black and White PCL) |
-tc <printer> | Print (Color PCL) |
-tp <printer> | Print (Postscript) |
-rp <printer> | Print directly |
-o <filename> | Output to file |
-u <basefilename> | Output to file with unique name |
-e <basedirectory>[:nosubs] | Process with eDIRECT, optionally no standard subdirectories |
-x <command> | Execute external command after output |
-c <directory>;<filemask>;<directory> | Copy files after output |
-r <directory>;<filemask> | Delete files after output |
-n <directory>;<filemask>;<printer> | Print files after output |
-i <filename> | Specify static input file (inplace of stdin) |
-l <directory>;<filemask> | Specify logfile location and name |
-v | Verbose (stdout) tracing |
-w <number> | Time in seconds to wait for more data (default 30) |
-exe | Execute after the data is copied |
-id | eFORMz installation directory |
-ws | Execute after the data is copied with the Director Web Service |
-qmv <varname:varvalue> | Set a Queue Monitor variable |
-cfg <filename> | Configuration filename (defaults to eSubmit.cfg) |
-np <port>;<directory>;<filemask> | Network port listener |
-help | Display usage and exit |
If only the -d and -f or the -mq and -mqm parameters are used, then no command file is generated.
The second way is to implicitly use the eSubmit.cfg (a standard Print Monitor configuration file created with the local Toolkit) file that resides in the same directory as the eSubmit.jar file. If no parameter is specified the first input queue in the eSubmit.cfg file is used. The first parameter of the command line can specify an input directory or a queue name ( new in ver 8.00 ). If eSubmit.cfg is not found, standard input is copied to the directory that eSubmit.jar resides in.
Examples:
java -jar -Djava.awt.headless=true -jar eSubmit.jar -d /minisoft/input/ -f sample.dat
Copies standard input to “/minisoft/input” directory and creates a unique name for the file using “sample” as the prefix and “.dat” as the extension.
java -jar -Djava.awt.headless=true -jar eSubmit.jar -d /minisoft/input/ -f sample.dat -p /minisoft/projects/project1.efz -t laserjetX
Copies standard input to “/minisoft/input” directory and creates a unique name for the file using “sample” as the prefix and “.dat” as the extension. It also creates a command file that will process the data file with the project “/minisoft/projects/project1.efz” and print it to “laserjetX”.
java -jar -Djava.awt.headless=true -jar eSubmit.jar
Copies standard input according to the specifications of the first queue in the eSubmit.cfg in the same directory that eSubmit.jar resides in.
java -jar -Djava.awt.headless=true -jar eSubmit.jar /minisoft/input/
Copies standard input according to the specifications of the queue referencing “/minisoft/input” in the eSubmit.cfg in the same directory that eSubmit.jar resides in.
java -jar -Djava.awt.headless=true -jar eSubmit.jar somequeue
Copies standard input according to the specifications of the queue named “somequeue” ( ver 8.00 only ) in the eSubmit.cfg in the same directory that eSubmit.jar resides in.
In the last 2 examples, a command file will only be generated if the specification in the eSubmit.cfg file contains more than an queue and file selection.