Trevor SullivanT
Windmillโ€ข3y agoโ€ข
72 replies
Trevor Sullivan

Getting Empty Output from Bash Script

I have a painfully simple Bash script that retrieves data from a publicly (anonymously) accessible REST API. Sometimes the script outputs the expected JSON, but the vast majority of the time, I'm not getting the JSON output from the curl command.

What could possibly be happening?

If I run this in a Linux shell, it works every single time.
image.png
image.png
Was this page helpful?