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:
- Grab the first JSON object
JSONOUTPUT1=$(certbot ...) - Process the JSON output
- Send the
\ninput to the certbot command inJSONOUPUT1(see point 1) - Collect the next JSON object in
JSONOUTPUT2
I'm not sure where to start to achieve this, any help is welcome.
I am guessing you want an '\n' right after your certbot terminates: