eguaj / teclient.sh Goto Github PK
View Code? Open in Web Editor NEWBash client for dynacase-tengine
Bash client for dynacase-tengine
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.