Hello all,
I have one binary and one shared library.
The shared library is compiled with:
all:
g++ -g -shared -fpic $(SOURCES) -o libmisc.so
the binary is compiled with:
LIBS=-L../../misc/src
LDFLAGS=-lmisc
all:
g++ -g -o mainx $(INCLUDE) $(SOURCE) $(LIBS) $(LDFLAGS)
I set in ~/.bashrc
export LD_LIBRARY_PATH=/mnt/sda5/Programming/m...
Ok first of all I like to mention what im doing is completely ethical and yes I am port scanning.
The program runs fine when the port is open but when I get to a closed socket the program halts for a very long time because there is no time-out clause. Below is the following code
int main(){
int err, net;
struct hostent *host;
stru...
I use bash, and have done so for over a decade - but occasionally I wonder whether there has been any significant new developments in the world of Linux shells.
A few years back Microsoft released PowerShell, which seemed very interesting. Is there any comparable innovation going on in Linux shells?
...
Hi,
i got a program that needs to check if a chunk of a file is zeroed or has data. This alg runs for the whole file for sizes upto a couple of gigs and takes a while to run. Is there a better way to check to see if its zeroed?
Platform: Linux and windows
bool WGTController::isBlockCompleted(wgBlock* block)
{
if (!block)
retu...
I have an application in linux, which is compiled successfully.
I want to run the same program in windows.
But compilation produces the following errors related to header files.
Cannot find sys/select.h
Cannot find termios.h
How can I fix this?
...
Is there a way in C/C++ to find the location (full path) of the current executed program (the problem with argv[0] is that it does not give the full path).
Thanks.
...
Something like a daemon that will never die,
my system is fedora10
...
I am developing cross-platform Qt application.
It is freeware though not open-source. Therefore I want to distribute it as a compiled binary.
On windows there is no problem, I pack my compiled 'exe' along with MinGW's and Qt's DLLs and everything goes great.
But on Linux there is a problem because the user may have shared libraries in ...
I have a script which needs to periodically start programs out of a array with program names via Perl on Linux. The problem is that from time to time one of the programs takes too long/hangs and needs to be aborted.
Currently I am starting the program using qx/$cmd/ in a seperate thread which reads from a shared start queue. The main t...
While I use Linux, I have not yet customized my bash shell, which I use a fair amount. So, I ask: What are your favorite customizations you have for bash?
...
How to remove files inside a directory that have more or less lines than specified (all files have ".txt" suffix)?
...
I am a bit lost with Linux file and directory permissions. What I would like to do is have one user be able to create, delete, and rename directories, while other users are not able to do so, but they should be able to read and write to the directories as well as traverse them.
So group 'storage' has access to directory /workspace, tho...
I am trying to compile a program I wrote in C++ for an assignment that uses pthreads. I am using Eclipse in Linux, and I didn't have any problems compiling, after I added "-lpthread" to the compiler arguments (to g++, gcc and linker). However, when I was about to run and debug, Eclipse gave me an error message window "Launch failed. Bina...
In my Fedora Core Linux (kernel 2.6.16.11), I've been trying to test the auto-shutdown mechanism associated with the CPU temperature. It does not automatically shutdown properly.
If my current processor temperature is 50 C and I set my ACPI configuration to shutdown at 55 C by executing the following commands at the prompt:
echo -n "5...
I am using OpenNLP and my English NameFinder on Linux (CentOS 5.3,Java 1.6.0_13) keeps giving me this error:
An unexpected error has been detected by Java Runtime Environment:
SIGSEGV (0xb) at pc=0x0657e436, pid=3484, tid=2291964816
Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
Problematic frame:
V [libjvm.so+0x...
I'm deploying nutch. At first I just left the index file under /root/nutch1.0. This works fine when run from command line. However, when I search from web, it always returns 0 hit.
I finally found the reason: It's because the index file is located under /root that causes the failure to open the file. Things returned to normal when I...
I am running an Apache instance on Ubuntu and am having this problem: .HTML files with bonafide HTML inside is being served as a text file:
> **For eg. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html>
> <body> <h1>Index to Butterthlies
> Catalogs</h1>
etc. etc.**
I checked the header in firebug and sure enough the page is pl...
Seems it has a respawn parameter,
But I haven't figured out how to use it.
...
Hi,
I am developing an application in Django using sqlite on windows.Will this db work on a linux machine? If not, how do i replicate the data on the new db on linux (creating scripts is one way)?
...
I have a linux based web hosting provider (fatcow.com) that doesn't give any command line access and won't run the setup script for CherryPy (python web server) for me.
Is there any way to run get around this limitation so that I have a working install of CherryPy?
This might be more or a serverfault.com question, but maybe someone her...