The Command Line Utility

A command line utility is bundled with the Entrance desktop application. This utiility uses the same code to draw charts that the Entrance desktop application uses, but output is sent to the JPG or PNG file you specify.

It can be used to “batch” generation of PNG files from shell scripts.

Usage:

java -jar entrance.jar (options) -c (connection_name)
  -o (output file) (script file)

java -jar entrance.jar (options) -url (jdbc url)
  -u (user) -p (password) -o (output file) (script file)

Options:

-c (Entrance connection name)
-url (jdbc url), eg. jdbc:mysql://(host):(port)/(db)
-u (user name)
-p (password)
-w (integer width of the resulting image)
-h (integer height of the resulting image)
-o (PNG or JPG output file)
-d (JDBC driver class)


Examples:

java -jar entrance.jar
  -url jdbc:mysql://localhost/test -u joe -p bagadonuts
  -o out.png ~/area.sql

java -jar entrance.jar -c test -o out.png ~/area.sql

java -jar entrance.jar -c test -o out.png ~/area.sql
  -w 800 -h 400

Comments are closed.