Skip to content

Tag: linux

How to kill all processes with a given partial name? [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 …

C wait3() int* status or int* stat_loc

I indeed to use wait3(). I have been looking what exactly is status/stat_loc but I couldn’t find it anywhere. Any explanation is greatly appreciated! Answer man wait explains the semantics of status:

gdb how to get thread name displayed

There are many threads created in my application. some of the threads name are visible in the gdb while i execute the command ‘info threads’, others are not displayed. How to get all the thread name itself instead of the hex value like 0xb7fe1424 Answer If you upgrade to gdb 7.3 or later, “i…

Linux Shell: VLC programming

Is there a way to manipulate VLC with a Linux shell script without the script waiting for VLC to close. This code keeps running VLC until the file is completed, and then evidently it is to late to pause the file. Answer You need to use dbus interface of VLC. Now, you can use the mpris interface of VLC. It&#82…

“SO” file conversion to readable format

Is there any way to convert “.so” file into source code or some in readable format. Answer Source code is probably hard, since the .so doesn’t “know” which language it was written in. But you can browse around in the assembly code by doing something like this:

Linux configure/make, –prefix?

Bear with me, this one’s not very easy to explain… I’m trying to configure, make and make install Xfce into my buildroot build directory. When configuring I’m using so that it builds to the right folder, however when it’s compressed and run I get errors from various config files …

Cannot install ruby version on redhat

I have the following problem and whatever I try, nothing helps. I hope someone could help me with this. I have a redhat server and I’m trying to install redmine on it. Redmine needs Ruby >= 1.8.7 to run so I installed it and when I execute ruby -v in the console it says I have version 1.8.7 (so that&…

How can I run a function from a script in command line?

I have a script that has some functions. Can I run one of the function directly from command line? Something like this? Answer If the script only defines the functions and does nothing else, you can first execute the script within the context of the current shell using the source or . command and then simply …