-1

I am using the following tool: https://github.com/EnigmaBridge/certbot-external-auth#json-mode

The tool returns a JSON object and waits for \n before it continues.

What I would like to achieve is this:

  1. Grab the first JSON object JSONOUTPUT1=$(certbot ...)
  2. Process the JSON output
  3. Send the \n input to the certbot command in JSONOUPUT1 (see point 1)
  4. Collect the next JSON object in JSONOUTPUT2

I'm not sure where to start to achieve this, any help is welcome.

Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101

1 Answers1

0

I am guessing you want an '\n' right after your certbot terminates:

JSONOUTPUT1=$(certbot ... && echo)
Matt
  • 165
  • 2
  • 8
  • No, the issue is that half way through the script, a JSON obejct should be read and when proccesed an \n should be send – Bob van Luijt Nov 22 '16 at 13:45