Imagine that you have an application with a plugin based architecture, where each plugin is a *.so file that is dynamically loaded with dlopen(). The main application can refer to symbols via dlsym(), and so it may call functions of the plugin. How can the plugin call functions of the main application? I know…
How to log to /var/log/mail.log using rsyslogd?
I am currently playing around with logging under Linux. I have made the following very simple test application (in plain C): This “application” compiles, and when I execute it, it generates an entry in /var/log/syslog, but no entry in /var/log/mail.log and no entry in /var/log/mail.err. Could some…
Minimize all application windows when a modal window gets minimized (on Linux)
I have an application with some windows, and one of them is modal. On Windows OS, when I minimize the modal window all other windows minimize as well. On Linux (I’m using Astra Linux) only the modal window minimizes and all other windows state doesn’t change, and they are not available for any act…
Bash on Ubuntu on Windows: Signal handler does not work
I try to run a simple program (code below), that should receive and handle the SIGUSR1 signal. It works well on “real” Linux, but if I run it on WSL after sending SIGUSR1 it prints User defined signal 1 and terminates. AFAIK this means that SIGUSR1 wasn’t handled by program and default handl…
How to find which process owns the named posix semaphore lock? [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 4 years ago. Improve this question I use…
Do Linux capabilities partition the possible privileged operations?
More precisely, are there any operations for which more than one capability could be used to give a process the necessary permissions? Answer The short answer is yes. I would say the overarching model is that each operation is guarded by a single capability. However, there are certainly exceptions. At a glanc…
SSH Tunnel to a machine on another network [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
curl command line API change on debian 9 regarding HTTPS
Is there any command line API change in Debian 9 curl? Recently I started to use Debian 9 (9.4, from Debian 8.x) and a script involving curl stopped working. I connect to internet through a squid proxy on localhost connected to a parent proxy. My environment variables are configured like this When I use wget,…
What does “-y” flag do? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
How to run command CTRL+Z in Shell?
I have a Node progress. I want to auto-start it and keep it in background via a shell script. The way I keep background progress is press crtl+Z after run npm run start, then run bg && disown. Now I’ve got a problem: How to process this crtl+Z command in Shell script? Answer Another way to run a…