Hi All, I've already determined that statically linked programs can't always run between different distros.
My question here, is if it is safe to distribute a statically linked program that is distro specific.
For example, I'd have an Ubuntu version of the binary, and a Redhat version of the binary and the user just downloads the cor...
I have a java server (1 process) that spawns a thread for every incoming connection. I know there is a file descriptor limit of 1024 that's compiled into the kernel.
Is there a limit to how many socket connections 1 process can support?
...
Hi all,
is there a way that an application running at user-mode can communicate with another application at the kernel mode.
For example, I would like to collect some infomation from the network driver and feed it some sniffer app running at user lever.
How do I proceed . Please advise.
...
We are currently looking for a second hosting company. The company should offer Linux based hosting and support WordPress and Drupal based websites.
Besides good pricing and technical support, the hosting company should have the latest stable versions of MySQL/PHP, and offer modern management/support tools (i.e. cPanel, Fantastico).
...
I will be writing a benchmarking tool that will test a mix of IOPS and bandwidth of a disk system and as such I will be turning to file backed memory maps for IO. Because the tool is going to need to be on both POSIX and WinNT platforms I can't just use plain old mmaps. Also from what I understand you have to madvise the Linux kernel tha...
Can anyone give me a bash script or one line command i can run on linux to recursively go through each folder from a root folder and delete all files or directories starting with '._'?
Thanks,
Dane.
...
Hi geeks,
This maybe a linguistic question. I have checked the loop device on Wikipedia. It is just for mounting files as block device. But what does "loop" mean here? Its usage here is totally bizarre to me. I am not a native English speaker. So could someone explain this jargon to me in plain English? :)
Thanks.
...
Hi guys~
Does anyone know where to find a summery table or cheetsheet for the Linux system call in Assembly language? I am invoking Linux system calls through int 0x80 instruction and I need to refer to what register contains what value from time to time.
Thanks.
...
There is a sound library written by _why called bloops. It runs fine, but within several minutes, it crashes. Following is a sample code:
#!/usr/bin/env ruby
require 'bloops'
loop {
b = Bloops.new
b.tempo = 320
b.tune(b.sound(Bloops::SAWTOOTH), "c")
b.play
sleep 1 until b.stopped?
b.clear
}
The error message is like this:
Expressi...
I want to be able to ftp a file to a specific folder on a server and have that server run a script when it detects the new file. Any suggestions?
I tried some stuff with diff and a cron job every minute, but I couldn't quite get the results I wanted.
Any input would be appreciated!
...
hi
I run the following on sun Solaris (its run OK on Linux) but not on sun Solaris
name="(WORD = (TCPIP = (PROTOCOL = TCP)(WORD = ALIAS_NAME)(PORT = 10234))"
echo $name | grep -o "(WORD = (TCPIP = (PROTOCOL = TCP)(WORD = ALIAS_NAME)(PORT = 10234))"
grep: illegal option -- o
Usage: grep -hblcnsviw pattern file . . .
my question which...
When ld-linux resolves a symbol it searches through the shared libraries in a particular order and stops when it finds a shared library with a matching symbol.
What determines the order it searches through the libraries? Does it make a difference if the unresolved symbol is in the main program or in another shared library?
How could I ...
When I write
mkdir("~/folder1" , 0777);
in linux, it failed to create a directory. If I replace the ~ with the expanded home directory, it works fine. What is the problem with using ~ ?
Thanks
...
I'm running an Ubuntu 10 web server and have my websites in the /var/www/<user> folder. The owner and group of the files and folders was <user>. This was fine using FTP, however when WordPress tried to access the filesystem it couldn't (as in Apache couldn't). So I changed the permissions of the folder and files to have the Owner as <use...
C parent program does some processing and allocates memory, then calls execvp(). What will happen with all the allocated but not freed memory? Is it automatically freed or stays as a garbage?
...
NOTE: I thought I was using bash, but /bin/sh is linked to /bin/dash, which has this weird exec problem.
I have a simple bash shell script on Linux which is used to launch a server process (which I did not write or control) and would like to have the bash shell script output the launched process's PID to a pidfile.
The problem is that ...
Hi,
i am using redhat 5.1 versions .i need the rpm that automatically download from internet
similar to centos and ubuntu. see i have an old gcc. compiler i want to download the latest
version compatible to my rhel 5.1 with this yum utility.please suggest
sunil
...
I have been googling this, but I can't seems to find it.
Is there a QT way to use linux sockets? It looked like the QSocket class is used for network sockets and not for local linux sockets.
Anyone knows anything about this? And maybe a tutorial to get started?
...
Is there any way, in bash, to pipe stderr through a filter before unifying it with stdout? That is, I want
stdout ----------------\
|-----> terminal/file/whatever
stderr -- [ filter ] --/
rather than
stdout ----\
|----[ filter ]---> terminal/file/whatever
stderr ----/
...
Hi folks,
We are using the "America/New_York" convention for the user to select the timezone, but in our resource constrained system, we must manually provide the actual TZ variable. For example, for New York, we have:
timezones["America/New_York"] = "EST5EDT,M3.2.0,M11.1.0";
However, the resource we found to provide these environme...