linux

Dynamic libraries with local and static variables

Can Dynamic libraries have global, local and static variables in linux? If yes, then where will each of these variables get stored in the memory? In my view, Globals and Static will be along with the code section of the Dynamic libraries while the locals should get declared in the stack of the executable making calls to the functions o...

ImportError running Google's python appengine on Ubuntu

I'm trying to teach myself python using Google's AppEngine, and I can't get the dev server running. I get this error: Traceback (most recent call last): File "/opt/google_appengine/google_appengine_1.2.7/dev_appserver.py", line 60, in run_file(file, globals()) File "/opt/google_appengine/google_appengine_1.2.7/dev_apps...

How do shared libraries work in a mixed 64bit/32bit system?

Good morning, on a 64bit RedHat box we have to compile and run a 32bit application. Meanwhile I managed to compile the gcc version needed (4.0.3) and all required runtime libraries in 32bit and have set the LD_LIBRARY_PATH to point to the 32bit versions, but now during the remaining build process, a small java program needs to be execut...

Dynamic shared library loading framework

I am working with a legacy C library that can be extended by writing user defined function(s) and then recompiling the source. I want to avoid the compilation requirement, and instead extend it ONCE with a function (see pseudocode below): This function will be implemented like this: VARIANT_TYPE CallSharedLibFunction(const char* librar...

Is it possible to setup a web server for asp and asp.net on linux?

I know it's MS's product, but is it neccesary that it's hosted in windows environment? More specificly,I need it to run in Fedora ...

MPSTAT show cpu usage average only during an application's execution

I want to know how much my application uses CPU time of each core while executing as well as the length of time it takes for program to end. for the latter I use linux "time" command. for the former I think I must use something like "mpstat". however I want mpstat to generate some logs only during my application execution and I don't kno...

multicasting on linux

i am testing a simple multicast application on linux. i got it working on my pc by doing the following: disabling the firewall running the command route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 if you are interested in the details, see this post why are these two steps required? is there an alternative. i am testing the code o...

How to record(reverse-engineer) PCI transactions on Linux

I want to record all read/write PCI transactions of a device driver. Is there a way to do it by a linux command or on software? ...

What tools does Linux programmer use to develop programs?

I migrated from Windows, and have heard that Linux programmers do not use IDEs to develop programs, something like Visual Studio. Is this saying true? Do Linux programmers use IDE to do pratical development? Thanks. ...

Batch Job Dependencies Using Open Source/Free Software

I run a large data warehouse plant where we have a lot of nightly jobs running concerruently however many have dependencies on a extract or data load process before they start. Currently we use an 'expensive scheduling system' to scehdule these at the moment. Is there any way you can setup job dependencies using an open source or free u...

Getting proxy information on Linux programmatically

I am currently using libproxy to get the proxy information (if any) on RedHat and Debian Linux. It doesn't work all that well, but it's the only way I know I can use to get the proxy information from my code. I need to stop using the lib since in most cases it doesn't recognize the proxy. Is there any way to acquire the proxy information...

List of commands of linux which can be helpful for php develpment

Hello. Every one. Actually I would like to know the list of commands & there use, which can be helpful for php development. Say for example, Crop Command => May be used to crop an image, Cut image I know very few commands of linux like "ls", "pwd" just the basic ones. I am not much interested to learn all linux programs. But The com...

How to use more than 3 GB in a process on 32-bit PAE-enabled Linux app?

PAE (Physical Address Extension) was introduced in CPUs back in 1994. This allows a 32-bit processor to access 64 GB of memory instead of 4 GB. Linux kernels offer support for this starting with 2.3.23. Assume I am booting one of these kernels, and want to write an application in C that will access more than 3 GB of memory (why 3 GB? ...

A few /proc and /dev questions

(1) Is /proc always present on all linux systems or is it an option somewhere (e.g. kernel compile, boot, etc)? (2) What determines what sub-directories are present in /proc? Are these always the same or are they configurable and/or creatable by user-space programs (presumably run as root)? (3) I noticed that /dev/shm was present on m...

Book recommendation for Unix shell commands

Hi, I want to learn more about UNIX shell commands, so I am searching a good book, that explains the most needed shell commands and how to get better on the terminal in general. I am using Ubuntu(Debian). The book should not have more than ~250 pages. I am neither a noob nor a pro using the terminal. Best regards ...

Search for a string in a text file and parse that line (Linux, C)

This is "how to parse a config file" question. Basically i have a text file (/etc/myconfig) that has all kind of settings. I need to read that file and search for the string: wants_return=yes once I locate that string I need to parse it and return only whatever it is after the equal sign. I've tried using a combinations of fgets and s...

Python 2.6 on Debian Lenny. Where should the executable go?

I am building python2.6 from source on Debian Lenny. ( ./configure make make altinstall ) I don't want it to conflict with anything existing, but I want it to be in the default search path for bash. Suggestions? (ps, I'm using a vm, so I can trash it and rebuild.) ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I'm producing on a Linux machine. What's the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It's a "slimmed down" version of WebKit, which is more limited than one might think.) ...

linux shell: How to read command argument from a file?

I have process id in a file "pid" I'd like to kill it. Something like: kill -9 <read pid from file> I tried: kill -9 `more pid` but it does not work. I also tried xargs but can't get my head around it. ...

Replacing a running executable in linux

I have an embedded linux system that can update itself from a USB card. The interface program detects the USB insertion and looks for the upgraded executable. I currently copy it to a local file and install some commands in rc5.d to copy the file over the existing exe on the next boot. Then I have the software reboot. Is there a bett...