linux

AT&T Synaptic Storage as a Service access using Linux

I'm looking for an open source library or project which would offer a filesystem or block device representation for AT&T Synaptic Storage as a Service. I'm looking for something similar to what you have for Amazon S3 : s3backer, s3fs-fuse, s3fs, or FuseOverAmazon. Unfortunatly, I didn't find anything like that for AT&T's storage offeri...

How do I attach to a running process like a debugger on linux?

What system calls are used? I want to use it to read memory locations scattered inside a different process's address space. Is this a reasonable use case for this mechanism? ...

core dumped - but core file is not in current directory?

While running a C program , It says "(core dumped)" but I can't see any files under current path. I have set ulimit -c unlimited and verified it with ulimit -a I also tried to find file named "core" but didn't get the core dumped file? Any help , where is my core file? ...

How to capture keystrokes with a Python daemon?

I'm trying to write a POS-style application for a Sheevaplug that does the following: Captures input from a card reader (as I understand, most mag card readers emulate keyboard input, so basically I'm looking to capture that) Doesn't require X Runs in the background (daemon) I've seen examples of code that will wait for STDIN, but th...

What is the best Open Source, linux-compatible UML modeling tool?

I've been looking around at the different options, and it seems that even some of the most popular open source tools are Windows-only (StarUML, for example). What is the best open source alternative to programs like Visio and Rational Rose for linux? ...

Mulitple Y axis on MedSphere graph?

Is it possible using the MedSphere graph2d to have multiple y axis so that you can plot more than one plot with independently scaling y axis e.g. so I can plot a percentage ranging from 0 to 1 and a line plot with data that has no upper limit and have both graphs shown without one getting squished down to a straight line? or if its not ...

How to use NetBeans to debug C++ libraries not compiled with NetBeans?

Hello, I am using NetBeans 6.8 on Redhat Linux. Does anyone know how to configure NetBeans to debug (step into) libraries not compiled with NetBeans? In my particular case, I'm trying to debug the VTK library which is built using cmake with the Debug flag set. I've written a C++ application that uses the shared libraries from VTK. A...

c#: How can you log into and administer a Linux server programmatically using C# on a windows client?

Can anyone show me c# code that successfully logs into a Linux server by inputting username and password? ...

Ada compilers for Linux

I'm doing a trade study for Ada development on Linux. Do you have any good compiler/OS recommendations? So far, I've got GNAT from AdaCore running on CentOS 5.4, and I have license requests in for Rational Apex and Aonix ObjectAda. This is a porting effort. The original codebase is Apex 3.0 on OSF1 4.0d. Anything else I should be cons...

what are the differences between an executable generated by windows and linux

Possible Duplicate: Why an executable program for a specific CPU does not work on Linux and Windows? Why can't programs written in linux be executd in windows ? Suppose I compile a simple C program containing function calls that are common to both windows and linux, Does the compiler generate different binary under windows and l...

Write my own 'everything is a file' interface

I would like to expose the settings and statistics of my program in a 'everything is a file' manner - sort of how /proc/ and /sys/ works. As an example, imagine for a moment that apache2 had this type of interface. You would then be able to do something like this (hypothetical): cd /apache2/virtual_hosts mkdir 172.20.30.50 cd 172.20.3...

Grabbing snapshots from webcams in ruby

How can I take snapshots from a webcam in ruby? I know the webcam device is on /dev/video0, but how do I get a picture from it? ...

How to choose the "Key" for inter-processes communication in Linux?

Good Day... I am doing a homework which states that I have 5 processes; a server and the rest are clients. Each process is supposed to be sparked from a different executable. I am going to implement a two-way message passing solution, but the question is not about message passing per se. Is there an elegant way to communicate the key be...

Coding Linux console application in Visual C++ 2008/2010 Express

I was told about the fascination of C++ and I have recently downloaded Visual C++ IDE to start learning C++. However I had this question in mind: How can I write C++ console application in Visual C++ and build it for Linux and Windows? Is there any plugin, additional compilers or hacks to go around with? ...

Seg fault with open command when trying to open very large file

I'm taking a networking class at school and am using C/GDB for the first time. Our assignment is to make a webserver that communicates with a client browser. I am well underway and can open files and send them to the client. Everything goes great till I open a very large file and then I seg fault. I'm not a pro at C/GDB so I'm sorry if t...

C++ linker errors, Undefined references to Items that should be referenced from a Share Object

I am building a library, called physgameengine, to aid in building games. This game library links against several libraries, including: Ogre3d, Bullet Physics and SDL, which are in the library files libOgreMain-1.6.5.so, libBulletCollision.a, libBulletDynamics.a, libBulletSoftBody.a, libSDL-1.2.so.0. This Library/Shared object appears to...

buildroot problem

Ok, you can tell by my name that I'm new to this, so please understand if any "errors & warnings" I am trying to build rootfs image for at91sam9260 controller, for which I'm using buildroot. The problem is that it is not able to download the package "ftp://ftp.uu.net/graphics/jpeg//jpegsrc.v6b.tar.gz". And on top of that, I'm also not a...

counting clock ticks linux 2.4.14

hello I am trying to count the total number of clock ticks for each process (only when its actually running). I inserted the following code in schedule() (sched.h): ... switch_tasks: prefetch(next); clear_tsk_need_resched(prev); if (likely(prev != next)) { rq->nr_switches++; rq->curr = next; ...

How to get this bash script to work if the variable "fileName" contains space?

#!/bin/bash -x echo "Enter file name: " read fileName fileName=`pwd`"/$fileName" if [ -f $fileName ]; then echo "file is present" fi Even if I change the value of fileName by adding quotes at starting and end.. The script still doesnt work. ...

bash script execution date/time

I'm trying to figure this out on and off for some time now. I have a bash script in Linux environment that, for safety reasons, I want to prevent from being executed say between 9am and 5pm unless a flag is given. So if I do ./script.sh between 9am and 5pm it would say "NO GO", but if I do ./script.sh -force it would bypass the check. Ba...