Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago. Improve this question I am trying to send some data to a remote Raspberry Pi over TCP socket from a GUI that I des…
Tag: linux
Regex is not checking some part of text
I’ve example file with data to analyze by egrep command: My regexp looks that: I wan’t to find only rows where [RM# {digits}] AND [IG# {digits}] but it returns like using OR and results looks following: Expected output is Answer Looks like you want to search for a line that should match two differ…
V4L2: What happens when the queue is full
In video capture mode, what happens when the queue is full and a new frame comes in? Does the kernel drop frames? If so, does the newest frame (just arrived) get dropped or the oldest one in the queue gets dropped? Answer Yes if the queue becomes full kernel drops the buffer newest frame which just arrived, i…
Find and scp in one command
I need to scp all txt files in /home/data directory and its subdirectories. The command seemed to work but on the destination server instead of a folder there was a file named testdir and it seemed to have the size of the last txt file that was transfered. Am I missing something in the command? Answer Rsync m…
Is it necessary to flush a QTextStream before closing a QFile?
I need to log some text messages to a file with following requirements : Each text messages is written in a new line at the end of the file. Be reasonably sure that each message was correctly written to the file. So far, the function is using QTextStream and QFile: Point 1 is satisfied but i have doubts about…
Installing a package independent of package manager [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago. Improve this question I am trying to create an install script for my program that runs on Linux …
Mapping Azure File Share in Bash Cloud Shell
Is this possible? So far I have not had much luck but I have limited Linux skills. I want to be able to map a persistent share so I can store Terraform state files that can be accessed by every person on my team. Using the PowerShell Shell, I can easily create a new psdrive to the share but you
Yocto/Poky: How to remove hwclock from busybox?
I’m building a Poky-based embedded Linux distribution for a target which doesn’t have a real-time clock. System time is only set by ntpd. Therefore I don’t really need an init script which calls hwclock –hctosys during boot, and in fact I’m afraid that this might cause the system…
usleep vs std::this_thread::sleep_for, when write/read on a linux serial port
I have created a c++ app that needs to connect to a modem via a serial port in order to give AT commands. I’ve followed the following answer: how to open, read, and write from serial port in C and it works great. In some point of the code it is mentioned that the working thread should sleep for enough
Linux Terminal Two Conditions to check
I need to check if node is running and if file /root/app/application.js exists and return corresponding message in terminal… For checking if node is running or not i do this and this works: Now i need to add to this to check also if file not exists /root/app/application.js so i found that this command i…