NAME
helios_job_submit_json - tool to submit Helios jobs with JSON arguemnts from the command line
SYNOPSIS
# full syntax
helios_job_submit_json [--jobtype=<jobtype>] [--args=<json arg string>]
# example with full switches
helios_job_submit_json --jobtype=MyService --args='{ "args": {"arg1": "value1", "arg2": 30} }'
# you can omit the switch names
helios_job_submit_json MyService '{ "args": {"arg1": "value1", "arg2": 30} }'
DESCRIPTION
The helios_job_submit_json 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, helios_job_submit_json will attempt to pull it from the parsed JSON argument string.
--args
The job arguments, in JSON format. If not specified, helios_job_submit_json 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
Job argument JSON should describe a JSON object:
{
"jobtype" : I<Helios jobtype name>,
"args" : {
I<arg1 name> : I<arg1 value>,
I<arg2 name> : I<arg2 value>,
I<...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"
}
}
SEE ALSO
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.