Skip to content

Linux Grouping and Counting Files by attribute

I am trying to return a list of the months that files were created using the following code. I am using the below code to validate each output. However as you can see from my output: Output of ls|grep I end up with 1 record showing no date. Also both January and December are short by 1. Can anyone assist?

Preventing background process from writing to console

In Linux’s bash, I know how to start a long running process and send it to the background. For example run.sh, then press Control+Z, then type bg 1 Sometime I would like to continue do other work, but this background process keep printing to my Putty console – which is annoying. I know I can start…

Interruption of signal handler with other signal?

Can a signal handler be interrupted by another signal (except of SIGKILL, SIGSTOP)? Therefore, do I need to check for EINTR in my signal handler when calling interruptable syscalls? (Linux and other Unixes) Answer Yes, the execution of a signal handler may itself be interrupted by the delivery of another sign…

Kafka broker crash every day – OOM killer

I have a cluster of 3 kafka brokers Version 0.10.2.1. Each broker has it’s own host 2 cpu / 16G RAM, In addition we are using docker to wrap the broker process. The problems is as follows: Almost every day at the same time we see all of our kafka clients failed for 10 minutes. At the beginning I thought