linux

Pyinstaller ld-linux-x86-64.so.2 linking problem

I'm trying to deploy my Python based application on another Linux host. Pyinstaller works flawlessly as long as I run the generated executable on my own system. On the target box I get this error message: /lib/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory As the output of ldd shows Pyinstaller links my ap...

send SIGINT to child process

I am trying to create a child process and then send SIGINT to the child without terminating the parent. I tried this: pid=fork(); if (!pid) { setpgrp(); cout<<"waiting...\n"; while(1); } else { cout<<"parent"; wait(NULL); } but when I hit C-c both process were terminated ...

How to convert .rpm file into .deb file in Fedora 10

Hi I am using 64 bit fedora10 linux. I have created rpm file for my software. It works fine. But my software doesnot works good or ubuntu and debian linux because they want .deb file. So How to convert my .rpm file into .deb file Thanks Sunil Kumar Sahoo ...

How to convert a 64 bit rpm file into 32 bit rpm file

Hi I am using Fedora 10 linux with 64bit architecture. I have created 64bit rpm file for my application. It works fine all fedora 10 linux which have 64 bit. But my application doesnot work well for 32 bit linux. So how to convert 64bit rpm file into 32 bit rpm file. Or how to recreate 32 bit rpm file. Thanks Sunil Kumar Sahoo ...

Current Linux Kernel debugging techniques

A linux machine freezes few hours after booting and running software (including custom drivers). I'm looking a method to debug such problem. Recently, there has been significant progress in Linux Kernel debugging techniques, hasn't it? I kindly ask to share some experience on the topic. ...

i want to continously run my java threads

I am running my java application where i have used threads... i am running this application using ant command on the terminal.. But when i close my terminal or press ctrl+c,then java program which was running stops... Please help me out to solve this as i want to run this program continously... ...

Grabing text from non java application

Is it possible to grab textarea using java from another non-java application? Known way is OCR with java.awt.Robot in my opinion is too complex and non effective if grabbed area is in the minimized window. P.S. Linux environment is preferred but not mandatory for solution. ...

Scanning Keypress in Python

I have paused a script for lets say 3500 seconds by using time module for ex time.sleep(3500). Now, my aim is to scan for keypresses while the script is on sleep, i mean its on this line. Its like I want to restart the script if a "keypress Ctrl+R" is pressed. For ex.. consider #!/usr/bin/python import time print "Hello.. again" whi...

File or directory not found in eclipse c++ project in linux even after including all the paths. Why?

I have the source code of a project that has been done in C++ eclipse in linux platform and i want to change a small value in one of the port related things. So I tried to build it in eclipse in fedora by File -> New ->Standard Make C++ Project. So many inclusion errors came and I got rid of it by doing Project -> Properties -> C/C++ Inc...

how do I always include symbols from a static library?

Suppose I have a static library libx.a. How to I make some symbols (not all) from this library to be always present in any binary I link with my library? Reason is that I need these symbols to be available via dlopen+dlsym. I'm aware of --whole-archive linker switch, but it forces all object files from library archive to linked into resu...

aio_write on linux with rtkaio is sometimes long

I'm using async io on linux with rtkaio library. In my tests everything works perfectly, but, in my real application i see that aio_write which is supposed to return very fast, is very slow. It can take more than 100 milis to write a 128KB to a O_DIRECT padded file. Both my test and the application use same I/O size, i check on the same ...

Can STDOUT and STDERR use different colors under XTerm / Konsole?

Is it even achievable? We need STDERR (ie. other streams then STDOUT) to have different colo(u)r. For example red. We use bash, terminal should be Konsole (XTerm, gnome terminal or any usable). Thanks if you know :-) ...

System.Windows.Forms.Timer event doesn't fire at all when run under mono

I compiled my application with monodevelop. And tried to run with mono on Linux. It seems that the System.Windows.Forms.Timer objects' tick event never fires. It runs without problems on windows, but not in Linux. The related code roughly looks like this: // derived from a From //... private Timer controlTimer; //.... protected overri...

Bash-script printing a pdf to a pdf in Linux

The question probably sounds a little odd, but the actual task is relatively simple, I swear! I'm automatically generating some PDFs from a webform, using PDFCreator to merge a generated FDF into a preexisting PDF. I created the preexisting PDF in NitroPDF. This setup works great - almost. The problem is that when you view the genera...

Inspect network traffic from simple linux cli app

I'm running a small app on the command line, and I'm trying to watch the (http) network traffic it creates. Is there some kind of wrapper program (like 'time', or 'watch') which can display all network traffic to and from my app? (Or at least, make a copy of it in a file) ...

What Is a Good Introduction and Tutorial on Internationalization and Localization?

My company uses an internally developed package to support internationalization/localization. However, it was developed some twenty years ago, and the libraries are restricted to one product line. I'm interested in where the state of the art stands. Is Unicode the base character set for all international efforts today? Do people still us...

Viewing File in Binary in Terminal

First things first, I'm on a Mac ssh'ing into a Linux machine via Terminal. I would like to view the contents of a file in the current directory, but in binary. Is there a binary mode for any text editors like VI or Nano or the like? ...

Should I read file in separate thread in this case ?

Hi, I am writing an application for embedded linux where 5% of processor time is going in reading a file and 95% on processing it. Can I get some performance improvement if I read file in one thread and keeps on processing in another thread? I am reading from mmc card which has DMA support. Filesize is of 20mb and it is devided in chun...

linux script simple arithmetic code

So I'm just working on some simple arithmetic code. Here's what I got: echo "The number should be 2"; declare -i input added input= date +%w let added="input/2" echo "$added" when I run it the output is 4 0 I'm trying to just get 2. What the heck am I doing wrong? ...

Is MODULE_LICENSE in a Linux Kernel Module legally binding?

I own a piece of proprietary hardware purchased from a company. They also provide a Linux kernel module for it, but it is incompatable with my kernel version and I'd like to get the source code to it to fix it. The License file that comes with the software claims the software is under a proprietary license. However during my efforts to m...