Batch Send Mode

If you have a need to write a script to send files over a TCP/IP connection, then this mode is for you. All of the basic elements are passed to the program using the command line, allowing whatever script you create to control all the parameters without modifying or creating configuration files.

The syntax is very simple. The program must be passed a hostname or IP address, a port number and a filename. It will send the data to the location specified then exit.

Examples

java -jar hl7comm.jar --batchsend hostname 12345 file.dat

java -jar hl7comm.jar -bs hostname 12345 file.dat

Logging Levels

You can also adjust the logging levels of the client in batch mode. By default the logging will be set to the WARN level, showing both WARN and ERROR messages. You can turn on three higher levels, which are INFO, DEBUG and TRACE, which will provide increasingly higher levels of detail. To activate these modes simply pass the mode you would like to use as another argument on the command line.

java -jar hl7comm.jar -bs hostname 12345 file.dat DEBUG