Giter VIP home page Giter VIP logo

teclient.sh's Introduction

Simple bash client for dynacase-tengine.

Usage

   export TE_HOST=<te_host_ip_addr>
   export TE_PORT=<te_port_number>

   teclient.sh convert <file_pathname> [<conversion_name> [<input_file_mime>]]
   teclient.sh info|get|abort <id>

Setup TE host/port

   $ export TE_HOST=127.0.0.1
   $ export TE_PORT=51968

Convert a file with an engine

   $ bash teclient.sh convert book.odt pdf
   2811

   On success: exitcode = 0 and the task id is printed on stdout.
   On failure: exitcode > 0 and an error message is printed on stderr.

Get info for a task id

   $ bash teclient.sh info 2811
   <response status="OK"><TASK><tid>2811</tid><infile>/var/tmp/tes-sYbtd6.odt</infile><inmime>application/vnd.oasis.opendocument.text</inmime><outfile>/var/tmp/ter-B5yGpO.pdf</outfile><engine>pdf</engine><status>D</status><callback></callback><callreturn></callreturn><fkey></fkey><pid>7489</pid><comment>generated by [/opt/dynacase-te/lib/engines/ooo2pdf] command; </comment></TASK></response>

   On success: exitcode = 0 and the XML response is printed on stdout.
   On failure: exitcode > 0 and an error message is printed on stderr.

Fetch the resulting data

   $ bash teclient.sh get 2811 > book.pdf

   On success: exitcode = 0 and the file is printed on stdout.
   On failure: exitcode > 0 and an error message is printed on stderr.

Cleanup/abort the task

   $ bash teclient.sh abort 2811

   On success: exitcode = 0
   On failure: exitcode > 0 and an error message is printed on stderr.

teclient.sh's People

Contributors

eguaj avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.