Skip to content

Tag: linux

Running jre keytool results in the Permission Denied error

I have a script running the command: Got the error: Checked all permission on the directories and keytool – all are executable. I am at RHEL-7 Answer A lot of Distributions do not allow files to be executed from within the /tmp directory. Either move the jre out of /tmp (why is it even in there?) or make it e…

How we can use correctly pipe in Linux?

I have a project, the goal it is to extract phone numbers of a data.txt file, so I did a program. Like that : My problem is when I want to use this program and to execute on my terminal I had to use pipe for my terminal command. I tried many different commands on my terminal and the last

Timing/Clocks in the Linux Kernel

I am writing a device driver and want to benchmark a few pieces of code to get a feel for where I could be experiencing some bottlenecks. As a result, I want to time a few segments of code. In userspace, I’m used to using clock_gettime() with CLOCK_MONOTONIC. Looking at the kernel sources (note that I a…

A function that can be stored on memory

suppose we have two python programs. calculate.py and show_results.py. When calculate.py program runs on terminal, it returns a variable (let’s say a list called result) to the computer memory. And when we run show_results.py on terminal, it prints the result from the programs before. Suppose the result…