I’m trying to cross compile GPG for an ElinOS on a board with an imx6. I have a problem when I compile libgcrypt. First, here’s what I do: The configuration part shows no errors or warning, but the make displays this: The first error leads me to this part of the code : Any idea where this comes fr…
Tag: linux
Piping two command from makefile is not working
I use the following commands in my makefile in the commands im getting array of values and remove the array [] from it, I want to run this command in my terminal and I use the following fzr provide apps | (subst ],,$(subst [,,$(apps))) | $(apps) and I got error what am I missing here ? if I run only
Why open() has no ‘fd’ return in linux 1.0?
Since there is no return of ‘fd’, how does it read/write later for? ex: Answer open returns a value in there. The cast-to-void is used to signal the compiler that the return value is being deliberately ignored. The init function is the one where the current thread is prepared to execute the init p…
I need a linux script to report all error lines from a log file, and export the results of error lines into a .csv file? [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 4 years ago. Improve this question I have log file for checking transactions, and I have error lines, so I ne…
ls sort order inside container
Running ls -d to list directories, print directories in different order if trailing / is present in file name. Why is that? What sorting rules apply? and why does this happen only with docker? With trailing / Without trailing / Answer I found out I get the same behavior using sort command But the sorting orde…
How to trap CTRL+Z in Linux POSIX shell script; possible or not?
I am a Linux shell scripter, I would like to know if it is possible to trap signal for script sleep: That is Ctrl+z? I do it at the moment like this and would like to trap that sleep signal too. Where the print_error_and_exit function just does as its name says. Goal: I would like to ignore this signal, if
awk: print the average of each students along with the given details using different separator
File which named as Input.txt has following data as name, class, schoolName, marks1 and marks2 with # separator: Using above file print all the details along with average using | separator as output. My answer: I tried one more command as: Output looks like this: Please help me out to get the desired output. …
What are the correct permissions while “sys_open”ing a file?
I am trying to read the contents of a file using x86 assembly on Linux. The question is, what we should put into edx – the “permissions” register for sys_open. I’ve used open() of C before; but there wasn’t any “permissions” field. I am trying to read a file belongs t…
Replacement of PS1 variable in .bashrc using Sed or Perl
I am trying to replace a line in file and am running in to issues. Original File: Command I am running: Error message: I also tried sed: Result with Sed: Expected Result File: End Result This doesn’t have much to do with the question except to show folks what the PS1 will look like when working properly…
Started container with docker run, now it is not showing up in docker ps -a
I started a docker container with docker run, like this: Link to GitHub.com/plexinc/pms-docker The docker container is running, as Im able to access the port and service, but I can’t seem to list the container when Im running sudo docker ps -a or sudo docker ps -aq or sudo docker ps –filter “…