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 can i3 config execute sudo commands [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 …
RPM require kernel-devel package of currently installed kernel
I have written an RPM spec that has a requirement for the kernel-devel package. However, that is satisfied by the installation of any kernel-devel package. How do I specify that the RPM requires the kernel-devel package of the currently running kernel version. For example, our customer could be running 3.10.0…
Segmentation fault in my Assembly implementation
I am new to assembly language programing, and here I am trying to call C standard library function puts from my assembly code, but I am continuously getting segmentaion fault. Please help; Operating system : LINUX 16.04 Assembler : nasm Machine : intel x86 – 64bit Answer to explain Comments More, start …
Is it possible to set an alias for a string?
As I’m so lazy, I don’t want to type 192.168.1 everytime anymore. I tried this: root@kali:~# alias “ip” = “192.168.1” That does not seem to work. As an example off what I try to accomplish: I don’t want to type this anymore: root@kali:~# hping3 -S –scan 1-1000 1…
Viewing updates of a dynamically generated log on a remote linux server from a windows machine
I have connected my windows 7 machine via winscp sftp with a cubietruck that runs on debian jessie server. I need to watch on windows the updated log of an installed app in the linux server. With winscp I can see this log file. I set the winscp to refresh the remote panel every 10 seconds. I tried to open
Segmentation fault appears when I use shared memory only from statically build program
When I built a program with –static option and it calls shm_open() function I get Segmentation fault. Without -static option all works like a charm. Does anybody know why? Below I have cited a debug info and a part of truncated source code from a big project. You can comment/uncomment string from Makefi…
rpm -q -> query only the descripton
I can query the informations about a rpm-package with Example-Result of a Query: But I only want to query the Description. Is that possible? The reason for that is that I want to process this information (the Description) in a C++ Program (I do this with popen()). Maybe something like this: Answer This is the…
more than one source of data to process with bc
I have this file that contains number in a column: I need to add them together so I do this: But after I add them together I need to divide them by 60,something like this: how can I do that? Answer
How to exit while loop when read() blocks
In a problem given by university we have to pipe from a parent process(P1) to its child P2, and afterwards P2 must pipe to another child of P1, the other child is P3. Both P2 and P3 are to be written in c and made into executable files. They will then by execed by child processes in P1. P1 writes