Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [api]

The tag has no usage guidance.

1
vote
1answer
55 views

Problems when test whether standard input is capable of seeking

So sorry guys 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 ...
0
votes
1answer
50 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
13 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 ...
0
votes
0answers
17 views

How to login and Download the file in the same session in R language?

I am trying to do login and download the file with using a package httr and jsonlite in R language. I write the following code : library(data.table) library(jsonlite) library(httr) library(properties)...
1
vote
1answer
87 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
0answers
29 views

How to expose multiple api's for same set of backend servers in haproxy

I'm trying to create multiple endpoints for my service which is exposed to world through haproxy. My service is something like http://abcdomain.com/swagger-ui.html hitting this url provide some info ...
0
votes
1answer
38 views

What is the IP address of my local interface that is required by IP_ADD_MEMBERSHIP?

In this man page http://man7.org/linux/man-pages/man7/ip.7.html, it is written that IP_ADD_MEMBERSHIP can be used to join a multicast group. We need to provide, as input, in particular, the IP ...
0
votes
1answer
115 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
52 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
61 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 ...
0
votes
0answers
32 views

Network bonding: How to interface the API of one external device in order to connect it to another external device

I have a geotab that I use in fleet management. When in cellular range it is able to automatically upload fleet information onto the Geotab website for me to access - using a SIM card installed in the ...
0
votes
1answer
54 views

Do the strings accessible via global vairable `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
340 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 ...
-1
votes
2answers
5k 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
125 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
144 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
55 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
181 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
160 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
133 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
43 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
74 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
283 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
1k 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
82 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
970 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
355 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
8k 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
328 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 ...
1
vote
3answers
1k views

Why isn't there a Unix API? [closed]

Why isn't there the Unix API? I mean, as there is the Windows API. I know a lot of things in the Unix world is modular, and those things put together creates a whole system. This sounds good but does ...
0
votes
1answer
358 views

Build log4cxx [DEBIAN]

Where to start when building log4cxx package, do I need some other packages for bulding this? I tried with this tutorial but unsuccessful. If it's possible I would like someone to explain to me ...
3
votes
1answer
702 views

Cocoa API implementation for Linux?

Is there any Wine-like project for running OS X apps on Linux? I mean an implementation of Cocoa API for standard Linux machine, as it is done with Wine.
0
votes
1answer
324 views

Can I use LXC library in my c program?

Currently, I am designing a c program that will create multiple container and put different applications into them separately to achieve isolation. Is it possible to leverage LXC library to it? I ...
3
votes
2answers
925 views

The «sh» being launched with execl() becomes a zombie

I am spent whole half a day, but still couldn't figure, why is the dash being launched with execl call just becomes a zombie. Below is a minimal test case — I'm just fork a child, make a duplicate of ...
1
vote
0answers
672 views

Can't run php cli at webuser but will run as root

I am running a Magento application on a Nginx server. nginx + php-fpm running as webuser:www There are some function in the shell directory of Magento which run fine as root and the import run fine ...
2
votes
4answers
4k views

What is “fs” short for in kernel function “get_fs()”?

There are two Linux kernel functions: get_ds() and get_fs() According to this article, I know ds is short for data segment. However, I cannot guess what "fs" is short for. Any explanations?
2
votes
1answer
644 views

How does Gnome clock/calendar applet get weather, sunset and sunrise time information?

How and where does this Gnome applet get weather information? Same question for sunrise and sunset times. I suppose there is a web API it queries but which one and can I use it? (sorry for the ...
1
vote
0answers
50 views

Very strange issue, something is blocking specific links on local domain

I have a very strange issue and I ran out of ideas. The major problem is that the symptoms are not consistent. I have a short link website hosted on 2 virtual machines, one with nginx+php-fpm and one ...
2
votes
1answer
973 views

API Monitoring and Hooking

I am currently reading the "Malware Analyst's Cookbook and DVD". There is a chapter "Dynamic Analysis" and there are also some recipes about hooking and monitoring API calls of process but it is for ...
12
votes
4answers
2k views

Why does *BSD uses driver specific names for network interfaces? Does it imply limitations?

I notice that depending on the brand of the network card, interface names differ (driver dependent I suppose). Why does *BSD uses driver specific names for network interfaces? Does it mean there is ...
2
votes
1answer
1k views

API for IPROUTE2 in any programming language

Is there any API that can be used to manipulate Linux routing table? I want to write a program that listens to sockets and then modifies routing table accordingly, just a simple code, but need an API.
4
votes
1answer
542 views

Use case of providing file-like API to terminal/console

It was explained in this Stack Overflow thread that each logical terminal has a "pseudo-terminal", and that writing to one: $ cat some-file.txt > /dev/ttys002 will cause the data to appear in ...
0
votes
1answer
173 views

API for panel applets on eOS Pantheon?

Is there any API (esp python or bash) to append new applets on eOS Pantheon's panel? I can't find proper documentation.
6
votes
1answer
866 views

Can I read and write to alternate HFS+ file forks or NTFS data streams from Linux?

It's possible to mount both Apple HFS+ and Microsoft NTFS filesystems under Linux. Both filesystems support multiple content streams per file, though this is not widely used. Apple uses the term ...
7
votes
2answers
5k views

Is there a faster interface for info from /proc/net/tcp?

Given a linux TCP socket's inode (obtained via /proc/<pid>/fd), is there a faster way to look up the information that I can get from /proc/net/tcp about this socket? I have written a ...
20
votes
6answers
1k views

How stable are Unix shell “stdin/stdout APIs”?

grepping, awking, sedding, and piping are day-to-day routine of a user of any Unix-like operating system, may it be on the command line or inside a shell script (collectively called filters from now ...
4
votes
1answer
254 views

TWAIN API support on FreeBSD

Does FreeBSD support in any way the TWAIN API? If not, what is the API that could be used to read data from imaging devices (webcams) - preferably in a portable way.
2
votes
2answers
894 views

Retrieve countries timezones

What is the best way to retrieve the current time zones of a number of countries, on a daily basis? (that would take into account DST changes, of course) Reliably If possible the Linux way (i.e. ...
2
votes
2answers
513 views

stop pipe() opening stdin

I've currently got code that forks two processes. The first reads a http streaming radio and pushes the data down a pipe (opened with pipe() ) for the second process to read, decode and output to the ...
21
votes
4answers
18k views

After fork(), where does the child begin its execution?

I'm trying to learn UNIX programming and came across a question regarding fork(). I understand that fork() creates an identical process of the currently running process, but where does it start? For ...