heliosx_job_json_submit - tool to submit Helios jobs with JSON arguments from the command line
# full syntax heliosx_job_json_submit [--jobtype=<jobtype>] [--args=<json arg string>] # example with full switches heliosx_job_json_submit --jobtype=MyService --args='{ "args": {"arg1": "value1", "arg2": 30} }' # you can omit the switch names heliosx_job_json_submit MyService '{ "args": {"arg1": "value1", "arg2": 30} }'
The heliosx_job_json_submit command can be used to submit jobs specified in JSON format to a Helios collective from the command line. It is is more or less a substitute for helios_job_submit.pl using JSON instead of Helios's default job argument XML.
The jobtype of the job. If not specified, the command will use the "jobtype" attribute of the specified JSON object string.
The job argument string, in JSON format. If not specified, the command will will read it from STDIN.
Displays the versions of the command, HeliosX::Job::JSON, and the Helios system version.
Displays this help page.
Helios job argument JSON should describe a JSON object:
{ "jobtype" : "<Helios jobtype name>", "args" : { "<arg1 name>" : "<arg1 value>", "<arg2 name>" : "<arg2 value>", ...etc... } }
For example, for a job of type MyService with 2 arguments, filename and thumbnail_size:
{ "jobtype" : "MyService", "args" : { "filename" : "photo.jpg", "thumbnail_size" : "100x100" } }
Andrew Johnson, <lajandy at cpan dot org>
Copyright (C) 2014 by Logical Helion, LLC.
This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. See the included LICENSE file for details.
This software comes with no warranty of any kind.
To install HeliosX::Job::JSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HeliosX::Job::JSON
CPAN shell
perl -MCPAN -e shell install HeliosX::Job::JSON
For more information on module installation, please visit the detailed CPAN module installation guide.