JetTrac Command provides the capability to execute any DOS command as part of a production JetTrac JobController job.
If you need assistance in installing and configuring JetTrac Command™, call Pro Technology Automation, Inc. at 805-527-1248 or email us at firstname.lastname@example.org. Please note that the JetTrac Command™ license fee does not cover configuration services and technical support so there may be an additional charge. Please ensure you read these instructions carefully before calling for technical support.
How to run JetTrac Command:
To run the program, you will need to have the following files located in the same folder:
The JTCommand.jar file is required for the program to run and should never be edited.
ProTechnology has provided sample files that you can run from a batch file or to setup a production job in JetTrac JobController you would add JetTrac Command as a job step.
JetTrac Command executes any DOS command, like delete or copy files as part of a production JetTrac job. If there is a requirement to do something that a JetTrac module does not do then JetTrac Command can call a .bat file that executes a command.
Job Step Configuration Window in JobConfig for JetTrac Command:
When setting up a job step using JTCommand in JobConfig the only line of the config you need to worry about is the first one, the config file line. The line should be filled with the fully qualified path to the config file. Eg: C:\JetTrac\…\config.ini
In JobConfig, file paths entered should not be in quotes.
As with all modules, there is a dropdown to select whether or not the job should stop completely if this step fails. If you select Yes, any error will terminate the job process and write to the log file what happened, if no, then the job will try to continue anyways. However if any steps further down the line rely on the output of a job set to not stop on error, they may not work properly.
For more specifics go to the JetTrac Field ServiceJobConfig page.
JetTrac Command-Command Line:
Assuming that you already have Java installed on your system, the format of the command line is:
java -jar -DJETTRACLF=C:\JetTrac\JobController\License\JetTrac.lic “C:\JTCommand.jar” “C:\JTCommand.dat” P1 P2 P3 “C:\JTCommand.ini” “C:\JTCommand.log”
Each part of the line is divided by spaces (the amount doesn’t matter), and contains the fully qualified file path to the file you are referencing surrounded by quotes. The command line begins with the path to the module’s executable file. Each command line ends with a short description of what the module does in quotes. For this module the input file is a PDF and the output is an XML.
JetTrac Command config file:
The JetTrac Command configuration .ini file contains a single line referencing the full file path to a .bat file. The .bat file will contain the DOS command that the module will run. The following is an example of this line:
The following is a sample of a DOS command line to delete a file:
Del TestFiles\Test1a.txt /Q