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 …
Tag: linux
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. ItR…
“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&…
g++ 4.6.1 compiler error: Error: unknown pseudo-op: `.cfi_personality’
I have a file which compiles without errors or warnings on my macbook pro running osx (snow leopard) using g++ (4.6.1). I just uploaded it to our linux cluster (not run by me) and tried to compile there (also using gcc 4.6.1). This time I many strange error messages with the assembler. How do I interpret the …
Setting up environment variable in ubuntu10.4
I am very new to Linux operating system and unable to install softwares necessary for my work. when i use the command Its showing the command setnev doesnot exist. How to set environment variable? I am using ubuntu 10.4 Please help! Answer setenv works only in the CShell. If you are using BASH then use the co…
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 …