Sponsored Content
Top Forums Shell Programming and Scripting Read info from api website and show retrieved data Post 303033901 by Neo on Saturday 13th of April 2019 02:37:53 PM
Old 04-13-2019
Why are you doing this with a shell script?

Is this homework at school?

Web developers do not do this "grab JSON from the net and process it" using shell because there are more modern tools and languages to do this. CGI and shell was used decades ago. Now, we use modern tools made for this kind of processing.

So, I kindly ask you again, why are you doing this using a shell script like bash?

What are you planning to do with the data after you retrieve it using a RESTFUL API?

Do you want to block the processing (the script) while waiting for the network call to return?

If so, why are you not doing this API call asynchronously using an AJAX function? Or more "2019'ish", with an asynchronous promise?
This User Gave Thanks to Neo For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Downloading info from website to database

Hi guys! I created a database using mysql in bash now i would like to download weather info from the data.(temp, date and time)...and just store this in the database to display after every 3 hours or so... i have tried to get the website using wget and now dont exactly now how to go from here... (0 Replies)
Discussion started by: vadharah
0 Replies

2. Shell Programming and Scripting

Store data from dynamic website table

hi everybody, Asking for something that I´m not sure if it´s possible to implement. I hope be clear enough. Well, my issue is that I´m looking how to copy or extract a particular table content of a website. I get the content from a external feed (Iframe format), the content is updated every... (1 Reply)
Discussion started by: cgkmal
1 Replies

3. Shell Programming and Scripting

Using Python to grab data from a website

Hello Everyone, I'm trying to write a python script that will go to the following website and grab all the data on the page. The page refreshes regularly and the number of flights is different. Untitled Document What I wanted to do was grab all the data (except for top three row containing... (5 Replies)
Discussion started by: jl487
5 Replies

4. Shell Programming and Scripting

Unix Script to read the XML file from Website

Hi Experts, I need a unix shell script which can copy the xml file from the below pasted website and paste in in my unix directory. http://www.westpac.co.nz/olcontent/olcontent.nsf/fx.xml Thanks in Advance... (8 Replies)
Discussion started by: phani333
8 Replies

5. Shell Programming and Scripting

sort retrieved data files in different dirs

Hi, I have a script to retrieve data files from server and store them in a directory on local disk. The script runs everyday as cron job. But now those files are too many so my boss wants me to put the files into different directories base on dates. Those files look like this: ... (4 Replies)
Discussion started by: leafei
4 Replies

6. UNIX for Advanced & Expert Users

Show all network info

Is there a command that display all network info. I'm looking for ip address, subnet mask, gateway, and dns. If there isn't a single command could someone please write me a shellscript that can do this? (8 Replies)
Discussion started by: cokedude
8 Replies

7. Shell Programming and Scripting

Need to run an API from a script and extract fields from output of API

Hi, I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr. The output of API will be like : <usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false"... (1 Reply)
Discussion started by: rkrish
1 Replies

8. Shell Programming and Scripting

Grabbing data from a secured website

Hello there, I am a beginner in Perl, and I have a challenging project: I have to create a program that checks regularly on an online bank account for new operations, it should then feed a database keeping track of all the money going in and out. Of course the login details of this online... (4 Replies)
Discussion started by: freddie50
4 Replies

9. Shell Programming and Scripting

Need help Filtering Data from an API

Hi Everyone, I need help on figuring out a way to filter some data that I get back from an API. Im able to get all the data that Im looking for but I would like to know a way for me to filter it better. The data that Im getting back is basically 2 rows of data as seen here. Row 1 ... (25 Replies)
Discussion started by: TheStruggle
25 Replies
HOBBITCGI.CFG(5)						File Formats Manual						  HOBBITCGI.CFG(5)

NAME
hobbitcgi.cfg - Command-line parameters for the Xymon CGI tools SYNOPSIS
$BBHOME/etc/hobbitcgi.cfg DESCRIPTION
hobbitcgi.cfg(1) controls the commandline options passed to all of the Xymon CGI tools through their respective shell-script wrappers. Typ- ically the options listed here are used for system-wide configuration of the CGI utilities, e.g. to define where they read configuration files. The exact set of commandline options available are described in the man-page for each of the CGI utilities. The file is "sourced" into the shell script wrapper, so assignments to the CGI-specific variables must follow standard shell-script syntax. SETTINGS
CGI_ACKINFO_OPTS Options for the hobbit-ackinfo.cgi(1) utility. CGI_ACK_OPTS Options for the bb-ack.cgi(1) utility. CGI_CSVINFO_OPTS Options for the bb-csvinfo.cgi(1) utility. CGI_DATEPAGE_OPTS Options for the bb-datepage.cgi(1) utility. CGI_ENADIS_OPTS Options for the hobbit-enadis.cgi(8) utility. CGI_EVENTLOG_OPTS Options for the bb-eventlog.cgi(1) utility. CGI_FINDHOST_OPTS Options for the bb-findhost.cgi(1) utility. CGI_HIST_OPTS Options for the bb-hist.cgi(1) utility. CGI_HOBBITCOLUMN_OPTS Xymon-specific options for column documentation. This uses the bb-csvinfo.cgi(1) utility with the server/etc/columndoc.cfg configu- ration file. CGI_HOBBITCONFREPORT_OPTS Options for the hobbit-confreport.cgi(1) utility. CGI_HOBBITGRAPH_OPTS Options for the hobbitgraph.cgi(1) utility. CGI_HOSTGRAPHS_OPTS Options for the hobbit-hostgraphs.cgi(1) utility. CGI_NKEDIT_OPTS Options for the hobbit-nkedit.cgi(1) utility. CGI_NKVIEW_OPTS Options for the hobbit-nkview.cgi(1) utility. CGI_REPLOG_OPTS Options for the bb-replog.cgi(1) utility. CGI_REP_OPTS Options for the bb-rep.cgi(1) utility. CGI_SNAPSHOT_OPTS Options for the bb-snapshot.cgi(1) utility. CGI_SVCHIST_OPTS Options for the hobbitsvc.cgi(1) utility when used to view historical logs. Note that the "--historical" option must be included in this setting. CGI_SVC_OPTS Options for the hobbitsvc.cgi(1) utility. SEE ALSO
xymon(7), the individual CGI utility man-pages. Xymon Version 4.2.3: 4 Feb 2009 HOBBITCGI.CFG(5)
All times are GMT -4. The time now is 07:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy