Questions tagged [api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
55 views

Why does ISO C / POSIX time() have an optional pointer argument

ISO C / POSIX declare the time() function like this: time_t time(time_t *tloc); The documentation says: The time() function shall return the value of time in seconds since the Epoch. The tloc ...
0
votes
0answers
18 views

API can't use Integer Variable but static Integer

I am using an API and I'm not able to bind an Integer Variable into it. I will attach my script below, but a little explanation can't hurt: Another script filters data that is send via curl, most of ...
0
votes
0answers
40 views

curl -X GET -H no URL specified!

I am trying to get tweets using Twitter's API, however get this each time in terminal. curl -X GET -H "Authorization: Bearer <SOME NO>" "https://api.twitter.com/2/tweets/20?...
2
votes
2answers
160 views

how to extract fields of info from github api using jq

I am trying to extract some info about github repositories using its API, apparently jq is the way to go. I can use this command to view all the available info: curl 'https://api.github.com/repos/tmux-...
1
vote
0answers
76 views

Is there dependency between Unix/Linux IPC facilities?

The Linux Programming Interface summarizes UNIX/Linux IPC facilities for communication and synchronization Is there dependency between any of the facilities? Either between their interfaces or their (...
0
votes
1answer
19 views

CURL to a website API respondsdifferent result

As the title says, im using firefox network explorer to consume an API, i've copied several things sucessfully like this, but this one gives a different result So, in the web the query is a GET to ...
0
votes
1answer
30 views

Shell script is omitting the escape character while returning the response payload for a CURL call

I have a shell script making a cur call that returns a response JSON payload containing a URL value with \ character in it as it returns the encoded value for a symbol like =. However, the echo of the ...
0
votes
0answers
23 views

Using restful API with curl fails with little debug info

I am trying to use Gandi's restfull API (this call) to add a TLSA record to my DNS and to do it I am using curl like this: # curl -X POST \ -H 'Authorization: Apikey ********************' \ -H '...
0
votes
0answers
13 views

Does Apache2 provide an API to administrate the server?

Is there an API for programmatic configuration of the server? Or is the only method of configuration by way of the configuration files?
0
votes
0answers
42 views

Dynamically creating multidimensional inline keyboard telegram bot api?

My Code: var keyBoardData = []; var menu = ['Nightclub', 'Parks']; for (var i = 0; i < menu.length; i++) { keyBoardData.push([{'text': menu[i], 'callback_data': '{"a":(menu[i]),"b&...
1
vote
2answers
285 views

What is the behaviour of a file-backed memory map when reading from or writing to an address larger than the length of the file?

I'm trying to figure out whether it would be undefined behaviour to open a memory map to a file with a very large length. My use-case is that I want to be able to see new data when the file is ...
0
votes
3answers
1k views

What is the relation between SIGCHLD and `waitpid()` or`wait()`?

If I am correct, a process waits for its children to terminate or stop by calling the waitpid() or wait() function. What is the relation between SIGCHLD signal and the waitpid() orwait() functions? ...
0
votes
1answer
58 views

WSO2 API Manager `filter` mediation not entered as it should

I am working to put an API behind WSO2 API Manager installed on premise. I designed the API, added the endpoint and add a first mediation sequence which add Authorization header at runtime. And it ...
2
votes
0answers
1k views

502 Bad Gateway when curl is talking to API

A curl command in a Bash script (called by cron) asks a web service/API, on another device/server (hosts both the API and the SQL database), to perform an operation on a database. How long this ...
-2
votes
1answer
83 views

Does the ABI of a compiled library depend on the operating system?

I just read an example of ABI. Is it correct that an ABI is similar to API, except that ABI is in machine language and API is in a high level programming language an ABI is the interface provided by ...
0
votes
1answer
108 views

Shodan - Running API from URL / ( browser )

I am trying to run the API from the URL window or "from browser" but receive an error In the first line is the instruction on how it should be done and on the second line how I did it and the error ...
1
vote
0answers
100 views

Environment variables in project are all wrong/different

I'm not an expert nor very proficient in OS and shell commands, and that's why I've come for help. I was successfully storing my API Keys for my Flutter project as Environment Variables, until I had ...
0
votes
0answers
20 views

Upload my output to my aws webserver

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 "http://3.135.18.96:8153/go/api/support" | jq '."Config Statistics"."Valid ...
1
vote
0answers
19 views

How to write openapi swagger file for ubuntu iptables rules auditing

I want to audit ubuntu iptable rules with openapi REST. So, I need swagger file. Can anyone guide me how to do this? Actually I am using Azure Logic App and I want to use custome api connector for ...
1
vote
0answers
34 views

Host data that everybody can update

I work with C# in my spare time and have written a number of programs as one of my hobbys. So I dont consider myself a programmer, I just like to write solutions for problems I come across. My latest ...
1
vote
1answer
204 views

batch curl request w/ https address txt file

I have multiple phones I am trying to obtain the up time for phones. I have enabled REST API for all phones and am looking to run CURL scripts to get the value of uptime. I have a script to get the ...
2
votes
1answer
944 views

how to determine vSphere virtual machine name from guest OS?

Is there any way to determine the vSphere virtual machine ID or name or UUID from a linux guest? I have administrative access to the guest, and would like to coordinate some maintenance actions ...
0
votes
0answers
82 views

Problem with the limit of requests api youtube v3 search

I execute the following command: curl -G https://www.googleapis.com/youtube/v3/search \ -d part="id" \ -d q="es-por-ti-juanes" \ -d maxResults="1" \ -d key="..........." \ -d type="video" \ -d ...
3
votes
1answer
1k views

Why is st_blocks always reported in 512-byte blocks?

I was debugging a fuse filesystem that was reporting wrong sizes for du. It turned out that it was putting st_size / st_blksize [*] into st_blocks of the stat structure. The Linux manual page for stat(...
1
vote
1answer
618 views

How to export calendar from a nextcloud instance?

I have some data on a nextcloud instance I don't administrate and I want to retrieve all calendar events I put on it. The documentation assume you have access to more than the web interface as a user (...
2
votes
1answer
289 views

Problems when test whether standard input is capable of seeking

I reversed statements in if/else, corrected now. I am reading a code snippet from Advanced Programming in the UNIX® Environment: The program tests its standard input to see whether it is capable ...
2
votes
1answer
477 views

Read arbitrary amount of memory with process_vm_readv

For process_vm_readv the linux man page states: [...] (Avoid) spanning memory pages (typically 4KiB) in a single remote iovec element. (Instead, split the remote read into two remote_iov elements ...
0
votes
1answer
62 views

python Ovirtsdk api, how to start a vm in paued mode

I am trying to start a vm in paused mode, but running into issues. I'm able to connect to the API and start vms normally, but I cannot seem to get the params part right for staring paused. In this ...
2
votes
1answer
492 views

How to provide OAuth2 “Client ID” and “Client Secret” to an open-source bash script?

I was writing a bash script for Gmail that would authorize itself using OAuth2, and make API calls using the received tokens. It worked. But now I'm stuck on thinking how to securely store the Client ...
0
votes
1answer
757 views

Deleting a particular branch of a in bitbucket repo using API (Shell script)

I want to delete a particular branch in a repo with help of api using shell script i have gone through official document https://docs.atlassian.com/bitbucket-server/rest/4.14.4/bitbucket-branch-rest....
2
votes
1answer
160 views

How to select the right options in the Cryptographic API Kernel section?

How do I know, which Kernel modules in the Cryptographic API will be beneficial on my system? How can I see, if I have software, which will use the Kernel API? For example I use often RSA, but will ...
1
vote
1answer
223 views

writing small web service for embedded device based on debian [closed]

We are developing embedded device which will integrate with some of our services in future. This device have limited set of functionalities and user defined mods for particular use cases. Based on arm ...
2
votes
1answer
164 views

Do the strings accessible via global variable `environ` not reflect any change to the environment?

From https://unix.stackexchange.com/a/436631/674 the file /proc/$$/environ ... does not reflect any changes to the environment, but just reports what the program received when it was execed by the ...
2
votes
1answer
610 views

cURL 404 Error - URL encoding with SharePoint URL

I am trying to connect to a SharePoint URL and pull the data in the form of a .json file. My URL looks like this: .../_api/web/lists/GetByTitle('titles list')/items If I give the URL as it is ...
5
votes
2answers
21k views

What is the meaning of “curl -k -i -X” in Linux?

I have read the man pages of Curl, but I can't understand what those parameters (k, i and X) mean. I see it used in a REST API call, but can someone please explain what those three parameters do? It's ...
3
votes
2answers
349 views

Timeouts between an API and an elasticsearch server every 2 hours

We are experiencing a weird issue on our servers. (Debian 8.9) We have an API which is a PHP application. It requests an elasticsearch which instance is on a separate server. Every 2 hours, we are ...
0
votes
1answer
322 views

Modded Steam game crashes on start, Steam API does not load, cannot read core dump

I have the latest version of Empire: Total War in Steam on Arch Linux x86_64. I have followed this Reddit guide to install DME. I have gone through each and every step (except the optional ones) and ...
0
votes
1answer
125 views

Hadoop cluster with Ambari - best way to modify configurations

We have an Hadoop cluster, clients are installed on Linux Red Hat machines and central management via Apache Ambari. yum list | grep ambari-server ambari-server.x86_64 2.5.0.3-7 ...
1
vote
0answers
248 views

what is “kernel–user space API”?

I am studing about apparmor. And to be more specific, for the "hats" inside the policy. In here [Apparmor Profile Language] says for "hats" that, it calls change_hat API. Can you explain the ...
1
vote
1answer
254 views

Changing code to send argument to API - Bash - Pastebin

I've recently tried to use the following code to send paste to pastebin.com: https://github.com/mefuckin/pastebin-shell/blob/master/pbin What I've noticed with that script is that it doesn't appear ...
1
vote
0answers
200 views

How to automate downloading recent file uploaded in Google Drive folder?

I want to automate the downloading of files that are daily uploaded to a shared Google Drive folder.
1
vote
1answer
95 views

Why fields in structs defined by the Unix API have prefixes?

Many fields in structs defined by the Unix API have prefixes, like sa_ in sa_handler defined in struct sigaction. Why is it so? Why isn't sa_handler called just handler?
1
vote
0answers
76 views

Setting up working environment - Konsole or other terminal - open few tabs and run some commands

I have a working environment where I run a web server, TSC compiler, and then work in few directories in a console, and also run few programs - IDE, 2x gitk, krusader. I would like to be able to ...
4
votes
1answer
415 views

How can I observer the desktop GUI interacting with the shell?

For example, if I change the sound volume by the ubuntu desktop widget, I think it will issue some commands to the shell or run a script. Is it possible to see what it runs?
0
votes
1answer
2k views

Not able to install Netlink Protocol Library Suite (libnl3)?

I was trying to install newer version of Aircrack-ng so I downloaded it from the official site and tried to install it, but it gave the following error: /bin/sh: 1: pkg-config: not found /bin/sh: 1: ...
0
votes
1answer
115 views

Minimum APIs for Linux

It seems that the Linux kernel (All POSIX OSs?) contains only 300+ system calls. Does this mean that any OS implementing those APIs (directly or by translation tables) can run software written for ...
0
votes
3answers
1k views

Filesystem kernel API

Assuming that all filesystems are specific, how tools like ls, touch, cat, etc interacting with them? I suppose that 'ls' doesn't know specifics about btrfs for example, but it reads directory entries ...
0
votes
2answers
541 views

Error in yaml - possibly due to wrong escape, but unable to identify the issue

The line below causes an error (...request body malformed."}). It is part of a user-data.yml for use with cloud-init as part of the digital ocean api to bootstrap a server upon creation. sed -ie '\$a\...
51
votes
8answers
9k views

On Unix systems, why do we have to explicitly `open()` and `close()` files to be able to `read()` or `write()` them?

Why do open() and close() exist in the Unix filesystem design? Couldn't the OS just detect the first time read() or write() was called and do whatever open() would normally do?
1
vote
1answer
370 views

Proxmox OpenVZ /cluster/resources returning incomplete info

I have a few Proxmox nodes, yesterday, I upgraded them all to 3.4-11. Today I found one of the node is not showing OpenVZ node correctly in the Proxmox UI. Then I did a bit investigation and found ...