Questions tagged [linux]

0 votes
0 replies
How to fix Error cannot open connection on Ubuntu machine?
This might be a very trivial issue with R-related Ubuntu settings, but I'm pretty new to it and have no clue to solve this issue. I'm trying to...
asked 1 month ago
0 votes
0 replies
Use custom command within a string [duplicate]
I'm encountering an issue passing an argument to a command in a Bash script. poc.sh: #!/bin/bash ARGS='"hi there" test' ./swap ${ARGS} swap:...
0 votes
1 replies
How to echo this entire code to .bashrc without leaving out characters/strings? [duplicate]
This question already has an answer here: How do I properly quote this bash pipeline for watch?...
asked 1 month ago
0 votes
0 replies
Kill background process started from the same bash script [duplicate]
I have a script that looks like this: pushd . nohup java -jar test/selenium-server.jar > /dev/null 2>&1 & cd web/code/protected/te...
asked 1 month ago
0 votes
0 replies
How to parse the result of a diff in a script?
I'm writing an script that should compare 2 directories and the files inside them and then parse the differences from A.xml to B.xml. I'm a litt...
asked 1 month ago
0 votes
1 replies
Workqueue starts, interrupted, and never finished causing CPU stall
Providing a minimal code example will be difficult but I'll provide some sudo code to hopefully get the point/question across. TL;DR: My workque...
-1 votes
1 replies
Linux - grant read permission to a certain file to all users but one? [closed]
If I have a certain file on a linux system with many users, is it possible (using linux file permissions structure) to grant read access to that...
asked 1 month ago
0 votes
0 replies
How to interpret the content of the file /proc/[pid]/io in Linux?
The output of the command cat /proc/[pid]/io (where [pid] must be replaced accordingly) is as follows: rchar: 1948 wchar: 0 syscr: 7 syscw: 0 re...
asked 1 month ago
0 votes
0 replies
Running GUI applications (DISPLAY) on jupyter notebook terminal - Linux
We are running jupyter notebook on a Ubuntu server, and using terminal feature of jupyter. This is good for running CLI but when we have to run a...
0 votes
0 replies
AMaViS: How to block encrypted archives?
Friends. I'm trying to block the encrypted archives in AMaViS filter. I uncomment line in /etc/amavisd/amavisd.conf qr'^UNDECIPHERABLE$', an...
asked 1 month ago
-1 votes
0 replies
How to configure an Apache web server default root? [closed]
when i was writing like http://localhost/public/, but like http://localhost/ i have a error "index of /" how to change? -1 Show your...
asked 1 month ago
-1 votes
0 replies
LINUX 16.04 port blocking and ip blocking [closed]
My condition is there is a local network with 3computers 1. Comp A (10.1.1.7) 2. Comp B (10.1.1.13) 3. Comp C (172.16.1.5) Comp A has two networ...
asked 1 month ago
0 votes
0 replies
System.Net.Sockets.SocketException (among others) thrown when using Microsoft.AspNetCore.SpaServices (react) in Docker Linux container and nginx
So I appreciate this is going to be a very obscure issue but I haven't been able to find an answer anywhere. I am using .Net Core 2.2 and React (...
-1 votes
0 replies
Error in `mosquitto_pub': double free or corruption (!prev): 0x00000000006a73f0
I'm using mosquitto_pub to send request. But I'm getting error for double free or corruption. Below is the error which I'm getting ======= Ba...
asked 1 month ago
-2 votes
0 replies
Is there a Linux utility (like dd) with that I can write into the space between partitions? [closed]
I want to write to space or sectors between partitions to either copy a keyfile there or create one from random data that I have written into tha...
asked 1 month ago
0 votes
0 replies
Where to put code files in Xenomai operating system on Beaglebone Black [closed]
I have two Beaglebone Black with Xenomai real time operating system. I need to send Ethernet frames from one BBB to the other BBB. I already got...
asked 1 month ago
0 votes
0 replies
Can I use separate threads per DRI card in Linux
I have an application in C that uses udev to monitor the hot plugging of new DRI cards (eg: /dev/dri/card0) on Linux. Searching I can only find r...
asked 1 month ago
0 votes
0 replies
Linux ioctl for tty gives EPERM
I try to implement a getty program (the program, which acquires a specific tty, sets it to stdin, stdout and stderr and executes the login proces...
asked 1 month ago
0 votes
3 replies
Pipe infinite output from shell command to a python script
I would like to forward the output from one script to the another. I try to do it like that: ./producer.py > ./consumer.py Where procuder:...
asked 1 month ago
0 votes
0 replies
How to compile linux executable on windows machine using mingw?
I'm trying to make my c++ project cross compiled from all machines and to all machines, so I found that minGW can compile windows executable on l...
asked 1 month ago
-2 votes
0 replies
“Corrupted file” when combine two or more files with cat command
I am developing an application. to upload large files.(with PHP) to upload those files I have to divide them into 1 MB chunks and to be downloa...
asked 1 month ago
0 votes
0 replies
My child processes crash silently with no error message even I handle its exceptions
I wrote a program to crawl a website and because of amount of link that I have to crawl I use Python multiprocessing. when my program starts ever...
0 votes
0 replies
Impersonating an user in Linux through Java
I have a Java application that runs on a Linux server and performs series of actions (create directory, copies few files, checks if an applicatio...
asked 1 month ago
-1 votes
1 replies
Python Zabbix API for Linux Process Monitoring
I have installed Zabbix 4.0 for remote monitoring of Linux server. I want to monitor different processes running on Zabbix-agent in the Zabbix-se...
asked 1 month ago
0 votes
2 replies
What does this strange construction “{} \;” means?
Why do we use this strange construction {} \; in linux terminal for exec command? For example, find . -type f -name *.jpeg -exec rm {} \;...
asked 1 month ago