linux

Any Debian based Linux distribution optimized for I686 or X86_64 and suitable for a number crunching cluster

I only know of Arch Linux which is pretty awesome and I use it for my desktop. But its rolling release model makes me wary of using it for servers. I know that the benefit of an optimized distribution will not be striking, at least it is unlikely to hurt. Given that I have more modern CPU I would rather enjoy an occasional benefit rather...

Regular Expression: Something out of nothing?

So * by itself means repeat the previous item zero or more times. The output of * is nothing. What about **? This gives an output, but how does matching zero or more times of nothing give something? Could you also explain that please? Same for ?*: Nothing precedes ?, so that is nothing right? How does matching zero or more times of nothi...

Excel Macro _ Linux communication

The excel files in on Linux cluster and we are using Win7. Our process is run a program on linux cluster multiple times. The process is a loop of 2 simple steps: Win7: Open excel file, run macro to generate data Linux: Run program, update data back to the excel file Win7: Open excel file, run macro to generate data Linux: Run program, ...

shell scripts on windows xp

Hi All, I am college going student, I have unix labs as part of my course. I want to practise shell, perl and some unix commands at home. Is there any way to it on my xp laptop. i dont want to intall whole linux OS on my laptop. is there any way where i can practicse shell scripts, perl scripts and some unix commands frm my windos xp la...

How to handle rsync in bash script to perform data sync backward from the secondary server to the primary server ?

I have two separate physical servers PRIMARY and SECONDARY connected with a ethernet switch of 100 mbps and i want to rsync files from my PRIMARY /home to SECONDARY /home and now after working for two hours in my SECONDARY server i have created some data in /home and so i want again the rsync to transfer the new data back to PRIMARY serv...

How do I use the GNU toolchain to learn C programming?

I am new to programming, and even newer to Linux. I was told that Linux is the best OS to learning to program as it lets a programmer interface closely with the machine architecture. I heard a lot about the GNU tool-chain and that it provides the best programming environment on Linux so I decided I won't use an IDE and put in as much tim...

Java I/O vs. Java new I/O (NIO) with Linux NPTL

My webservers use the usual Java I/O with thread per connection mechanism. Nowadays, they are getting on their knees with increased user (long polling connection). However, the connections are mostly idle. While this can be solved by adding more webservers, I have been trying to do some research on the NIO implementation. I got a mixed...

What does EAGAIN mean?

As in the title what does EAGAIN mean? ...

How can i monitoring a linux server's resources from windows box ?

Hello, I have a few linux server and want to monitoring their resources from my windows desktop computer. It'd be great if the application is/have/can (etc...); easy-to-use. widget-like looking on desktop. warning on high resource using. ...

Memory Segments of a Program in C

I'm looking for a tutorial describing about the various memory segments of a C program like code segment, data segment etc and what type of information is stored into them (i.e. where global, static, automatic etc variables are stored and why?). --Ravi ...

Makefile that distincts between Windows and Unix-like systems

I would like to have the same Makefile for building on Linux and on Windows. I use the default GNU make on Linux and the mingw32-make (also GNU make) on Windows. I want the Makefile to detect whether it operates on Windows or Linux. For example make clean command on Windows looks like: clean: del $(DESTDIR_TARGET) But on Linu...

Terminating scanf programically in C language.

Well, I'm programming using C language on a Linux OS. I'm writing a program that scans an input from the user. However, I want the scanf to have a certain time limit. For example, if the user does not enter anything on the keyboard withing 10 seconds, it will skip the scanf and go to the next line. I'm using alarm(10) to wait for 10 seco...

Does NDepend run on Mono/Linux?

I'd like to use NDepend at home for an open source project, but I can't find if it run on linux with mono 2.6.8. Any one have succesfully used it on a mono only machine? ...

What resources/references exist for package management within an organization

I would like to have a custom package system of mostly open source software to deploy within my organization on at least two systems: RHEL and Fedora >=13. Possibly also Mac OS. What blogs/books or other references are relevant? If you have specific tips, this would also be most welcome. Thanks, SetJmp ...

Unix C program issue using pipes and processes

Here's the story: Write a program in C that creates a child process and a granchild process (child of a child process!). The father process should read the contents of a file which name will take as an argument when you run the program. The father should send the text read to the child, which takes to convert those characters 'a' found ...

In Linux, how do I run a shell script when a file or directory changes

I want to run a shell script when a specific file or directory changes. How can I easily do that? ...

which suits linux ? GNU make vs cmake vs codeblocks vs qmake

In front of me some different Technologies and I'm confused between them. GNU make, CMAKE, Qmake, Code::blocks methodology Code::Blocks uses a custom build system, which stores its information in XML-based project files, but can optionally use external makefiles **says WIKI** 1- What's the difference between CMAKE and GNU MAKE ? 2- I...

Does sleep ges interrupted when any signal is received in perl?

I have this simple perl daemon: #!/usr/bin/perl use strict; use warnings; use Proc::Daemon; Proc::Daemon::Init; my $continue = 1; $SIG{TERM} = sub { $continue = 0 }; $SIG{USR1} = sub { do_process(1) }; # basic daemon boxesd_log("started boxesd"); ...

Does linux disk buffer cache make python cPickle more efficient than shelve?

Is IO more efficient, due to the linux disk buffer cache, when storing frequently accessed python objects as separate cPickle files instead of storing all objects in one large shelf? Does the disk buffer cache operate differently in these two scenarios with respect to efficiency? There may be thousands of large files (generally around...

Erlang shell problem

Hello, Im new to Erlang. Im using Erlang on Ubuntu 10.10. I typed erl to start the erlang shell (Eshell V5.7.4). The shell starts. But, if i type some expression in the shell like say 20+30 and hit enter im back to 1>, and the result of the expression is not shown. What could be causing this problem ? Please Help Thank You. ...