Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running jarg on crontab #5

Open
btoztas opened this issue Dec 4, 2018 · 0 comments
Open

Running jarg on crontab #5

btoztas opened this issue Dec 4, 2018 · 0 comments

Comments

@btoztas
Copy link

btoztas commented Dec 4, 2018

I'm trying to run jarg on crontab, simple by doing this:

jarg foo=bar

but I get this error:

Traceback (most recent call last):
File "/usr/bin/jarg", line 9, in
load_entry_point('jarg==0.4.1', 'console_scripts', 'jarg')()
File "/usr/lib/python2.7/site-packages/jarg/cli.py", line 66, in main
context = dialect.from_literal(sys.stdin.read())
File "/usr/lib/python2.7/site-packages/jarg/dialects.py", line 41, in from_literal
return json.loads(value)
File "/usr/lib64/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I've placed all my env variables on crontab.

Any thoughts on how to solve it?

Thanks

@btoztas btoztas changed the title Running jarf on crontab Running jarg on crontab Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant