The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

heliosx_job_json_submit - tool to submit Helios jobs with JSON arguments from the command line

SYNOPSIS

 # 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} }'

DESCRIPTION

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.

OPTIONS

--jobtype

The jobtype of the job. If not specified, the command will use the "jobtype" attribute of the specified JSON object string.

--args

The job argument string, in JSON format. If not specified, the command will will read it from STDIN.

--version

Displays the versions of the command, HeliosX::Job::JSON, and the Helios system version.

--help

Displays this help page.

JOB ARGUMENT JSON

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"
              }
 }

AUTHOR

Andrew Johnson, <lajandy at cpan dot org>

COPYRIGHT AND LICENSE

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.

WARRANTY

This software comes with no warranty of any kind.