linux

SVN commit on windows XP

I have svn sever on Fedora 12. If I commit to repo from linux machine, if I commit from my MAC laptop all is ok, however when I try to commit from my windows XP laptop png files will not commit, every other file type works on the windows laptop. This is obviously something to do with windows, but I haven't got a clue what!!!! I have bee...

Problems with WinSCP with whitespaces on ubuntu linux when using SVN Diff

My files are on a remote Ubuntu linux server. When I download the files and edit it in either the WinSCP text client or notepad++, the file whitespaces changes to windows. So when I resave the file back to ubuntu the whitespace are off and SVN Diff thinks every line has changed. FYI, I edit the file by double clicking the file in WinS...

What's the easiest way to Create a User-Friendly front end for a C program on Linux platform

I have a small course project that would best have a user-friendly front end. It's a network sniffer, I coded the program with C and Linux. And now I am hoping to make it more ``user-friendly". ...

Compiling c++ program under linux

I am trying to compile simple program under linux. These are the set of operations I performed. [mypc@localhost programs]$ vim heap.cpp [mypc@localhost programs]$ g++ -c heap.cpp [mypc@localhost programs]$ chmod 777 heap.* [mypc@localhost programs]$ g++ -c heap.cpp [mypc@localhost programs]$ ./heap.o bash: ./heap.o: Permission denied...

Mixed Linux/Windows Domain Management

What would be a recommended solution for domain management when I have a mixture of linux and windows computers operating in my startups network? Preferrably free and using a linux central server. Would also like to use OpenVPN or any other open source VPN system to access both types of computers on the network. Thanks in Advance ...

Fortran bus error on mac

The following Fortran code is giving me a bus error on my Mac but no errors when I run it on my Linux machine: PROGRAM TINY WRITE(UNIT=*, FMT=*) 'Hello, world!' END My understanding is that a bus error occurs when the program attempts to access impossible memory but I do not understand where such an attempt has been made in this...

command line byte sequence

How do you express a byte sequence from the command line? i.e like you would in PHP with the following: <?php echo "\xC2\xA3" usage: for passing a Unicode string to a script or program. The above example is the UK pound sign "£" ...

whiptail: How to redirect output to environment variable?

I'm trying to use whiptail as it's a lightweight alternative to dialog and seems to be installed by default in most systems (i.e., people don't have to go around and install it if it's "forgotten" or wasn't installed by default). I checked question #1562666 for a few examples here, but I'm looking for an alternative for redirecting outpu...

How do I sudo the current process?

Is it possible to use a sudo frontend (like gksudo) to elevate the privileges of the current process? I know I can do the following: sudo cat /etc/passwd- But I'm interested in doing this: sudo-become-root # magic function/command cat /etc/passwd- I'm writing in Python. My usecase is that I have a program that runs as the user, b...

How to Verify Atomic Writes?

Hello all, I have searched diligently (both within the S[O|F|U] network and elsewhere) and believe this to be an uncommon question. I am working with an Atmel AT91SAM9263-EK development board (ARM926EJ-S core, ARMv5 instruction set) running Debian Linux 2.6.28-4. I am writing using (I believe) the tty driver to talk to an RS-485 seria...

Flex: MXML syntax highlighting, autocomplete and bracket matching functionality on GNU/Linux?

Has anyone been able to get syntax highlighting, autocomplete and bracket matching functionality on GNU/Linux for MXML files? We are using Eclipse with Flex Builder for Linux (version alpha 5), but we can't edit MXML files on design view, and the text mode just shows the XML as plain text (not even syntax highlighting). The official pr...

Compiling xboxdrv on openSUSE 11.2

I'm trying to use an xbox360 controller as a joystick in openSUSE 11.2. When attempting to compile xboxdrv (http://pingus.seul.org/~grumbel/xboxdrv/) I get the following errors: g++ -o src/xbox_controller.o -c -g -O2 -Wall -ansi -pedantic src/xbox_controller.cpp In file included from src/xbox_controller.hpp:23, from src...

Linux: How to put a load on system memory?

I'm working on a small function, that gives my users a picture of how occupied the CPU is. I'm using cat /proc/loadavg, wich returns the wellknown 3 numbers. My problem is that the CPU doesn't do anything right now, while I'm developing. Is there a good way to generate som load on the CPU, I was thinking something like makecpudosomethi...

Building my project with make

I'm working to improve the long languishing Linux build process for Bitfighter, and am having problems with make. My process is actually quite simple, and since make is (nearly) universal, I want to stick with it if I can. Below I've attached my current Makefile, which works, but clumsily so. I'm looking for ways to improve it, and ha...

Why is my Bash script adding <feff> to the beginning of files?

Greetings, While I've gotten many answer off this site, this is my first question, and I'm kinda excited about it... :) I've written a script that cleans up .csv files, removing some bad commas and bad quotes (bad, means they break an in house program we use to transform these files) using sed: # remove all commas, and re-insert t...

Cannot SCP a path with spaces from bash script?

I have a bash script which generates an SCP command to execute. The relevant parts of the code look like this: echo $COPY_CMD $COPY_CMD My output looks like this: rascher@localhost:~/Desktop/video_final$ ./xfervids.sh scp "/media/My Book/PhotosVideos/Videos/18May2008Download/SD_VIDEO/PRG001/MOV056.MOD" [email protected]:./video...

Any tool to convert PDF to XLs on linux?

All, Is there any tool to convert PDF to XLS on linux.... Thanks. ...

Posix evtsuspend equivalent

I am migrating a LynxOS program to an ubuntu distribution and gcc 4.1.3 I am almost done but I have a problem, I am receiving SIGALRM signal which forces my program to exit. I dont know why I am receiving this signals if I am not calling to alarm(x). I roundabouted this with a sigaction, but my program is not working properly mq_receiv...

Linux API to get info about filesystem

I am looking for a linux api that returns me information about root filesystem. I can use command stat -f / to get information about root filesystem. Is there any API that returns exactly same information as returned by "stat -f" command ? ...

Does anybody know if someone had integrated libsegfault.so and gdbserver in order to get gdb attached on the fly to a crashed program?

It's mentioned in http://sourceware.org/ml/gdb/2007-06/msg00360.html before. But no one seemed to have actually implemented this kind of idea. Is there any obstacles for realizing this? My requirements are the following: Being able to plugin to any elf binary executable (ex. by using LD_PRELOAD) The binary may be a multithreaded ex...