I want to use the output data from my cmd to the Dashboard in a webserver in a table format.

I ran this command:

curl -s "" | jq '."Config Statistics"."Valid Config"."Number of agents"'

I got the output as 1 and now how can I use this output to reflect it on the server also want a auto update of this API.

Please help me on this.

| improve this question | | | | |
  • 1
    What do you mean "how can I use this output to reflect it on the server"? What do you mean by "want an auto update of this API"? Please edit your question to be more precise. You may want to include an example or two to help explain the issue better. – roaima Dec 23 '19 at 11:16
  • not sure how to frame this, I have called an api and got output of that, say as "2". Now, I want this output to be updated in my server hosted in my aws environment. Ex - curl -s "" | jq '."Config Statistics"."Valid Config" ' with this cmd I got the output, now have to upload it to server. Please let me know if I'm not clear. – faraz Dec 23 '19 at 12:24
  • When you say cmd do you mean the Microsoft's Windows program cmd or did you mean something else? – ctrl-alt-delor Dec 23 '19 at 13:19
  • You are not clear: You were asked to update the question. Also avoid abrivs. Give examples. What is 1 and 2? – ctrl-alt-delor Dec 23 '19 at 13:22
  • Is your question: I have just used curl, to get a file to my local Gnu/Linux machine. I now want it on my AWS machine. How do I get it to there? – ctrl-alt-delor Dec 23 '19 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.