Category "linux"

sqlplus query + loop on linux

I have pratically 0 experience on unix and few on mysql and I am finding hard where to start to complete this task, I have to write a .sh file to launch once a

Why does interrupting a simple C++ program under Valgrind results in segmentation fault?

Consider the following program: #include <iostream> int main() { std::cout << "Hello, World!\n"; } I compile it with on Ubuntu 20.04 (Focal F

cargo build-bpf fails on ubuntu

rustc --version = rustc 1.60.0 (7737e0b5c 2022-04-04) solana --version = solana-cli 1.10.8 (src:623ac656; feat:1122441720) npm --version = 8.5.1 node --version

Checking user info with multiple parameters

I have to print information about the user with the name given as a parameter. For example let's say ./script1.sh John should give me John Doe (username) -last

asdf fails node install with: permission denied error, how to grant it permission?

When i try to install a node version with asdf-vm i get the following error Trying to update node-build... ok mkdir: cannot set permissions '/tmp': Permission d

NameError! I am following Django tutorial in part 5 when try to run test, getting error

[enter image description here][1] [1]: https://i.stack.imgur.com/2wDSL.png NameError! I am following Django tutorial in part 5 when try to run test, getting e

error device-tree: can't request region for resource [mem 0x01c20800-0x01c20aff]

ERROR SHOW: [ 156.303744] blinkled: loading out-of-tree module taints kernel. [ 156.303871] blinkled: module verification failed: signature and/or required ke

Error /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found

firstly, I google'd a lot but nothing I found related to my case, I have an ELF executable file I'm trying to run it in my Ubuntu WSL, I've changed the permissi

conditions to check if Aerospike cluster is being idle

Assuming aerospike is running, I need some conditions through which check weather aerospike cluster is idle and not being used at all. I tried checking log file

How do I run 1 instance of rsync / rclone script using flock as a cron job?

I'm trying to run only one instance of my back up script as a cron job. I know I can do it with a function that checks if the process is running: if pgrep -x rc

3 level Port forwarding (Kubernetes Pod -> Docker Container -> Local

I use a docker container to interact with my kubernetes cluster. I run kubectl from inside the container. All works fine except when I want to port forward. I c

Linux find xargs command grep showing path and filename

find /folder/202205??/ -type f | xargs head -50| grep '^Starting' There are 20220501 20220502 20220503 and so on folders... This command searches all first 50 l

Bash - How to rename files inside a directory based on names.txt

I'm sorry I can't provide the actual filenames for privacy reasons. names.txt contains several groups of lines separated by a single empty line. Each group pert

Linux - Receive data via UDP; accept TCP connections, pass the data to the clients

I have a situation in which I'm being fed data via UDP on a pre-defined port (let's say 20001). My goal is to make that same data accessible to multiple clients

Gtk::DrawingArea's size_allocate signal not captured

I want to code a hand-free drawing soft using gtkmm. So I derive the Gdk::DrawingArea class and override it's on_size_allocate() function to initialize the surf

apt-update in Azure Nvidia gives publickey error

I started a NVIDIA VM on AZURE and trying to do update using sudo apt update but gives error: Hit:2 http://azure.archive.ubuntu.com/ubuntu focal InRelease

Promise { <pending> } React bcrypt hashing the Password [duplicate]

I am creating a Login/Registration Form Using Nodejs. I am hashing the password entered by the user using bcrypt.js but when I assign the pass

How to remove the Title Bar of Gnome applications

Problem I have one Ubuntu20 Desktop(Gnome) and I want it to be fully black and ideal. As reference, I have taken one Ubuntu20 Server and Installed openbox on it

Linux read dilemma

I need to read from a fifo. Using ssize_t read(int fd, void *buf, size_t count);, I faced the following situation. When a large set of data must be read from fi

what is the upper limit for process heap memory? [duplicate]

Hi Anybody knows what is the upper limit for the heap allocation in linux process? Consider below example, int main() { char *p; unsig