Here is the deal:
I have a multiple process system (pre-fork model, similar to apache). all processes are writing to the same log file (in fact a binary log file recording requests and responses, but no matter).
I protect against concurrent access to the log via a shared memory lock, and when the file reach a certain size the process th...
I have a problem to start orale listiner in linux(Rhel5)
I am using oracle 10g
when I use $lsnrctl start
there is an following error
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection...
count_items=`curl -u username:password -L "websitelink" | sed -e 's/<\/title>/<\/title>\n/g' | sed -n -e 's/.*<title>\(.*\)<\/title>.*/\1/p' | wc -l`
Above I have a Bash script that extracts the titles from an XML file, but how do I change the regex so that it extracts a title name from a div tag?
Example: extract title out of: <div i...
I'm looking for a tool in which I can draw highlevel overviews of proposed system architectures at a class level.
I'd probably be looking for a UML editor. I wouldn't be looking to tie myself to a language here, but I mostly work in C/C++, Java and Python in a Linux environment.
I'd also appreciate any advice or book recommendations in...
Is there any noticeable difference in speed between these 2 scenarios?
Scenario 1:
I have a file of size 1024 bytes filled with 0s for every byte.
I open the file and write 1024 bytes of 1s with fwrite.
Scenario 2:
I have a file of size 512 bytes filled with 0s for every byte.
I open the file and write 1024 bytes of 1s with fwrite.
Ob...
Possible Duplicate:
Maximum length of a std::basic_string<_CharT> string
I would like to know how many characters does string class in c++ support.
thanks..
...
Most Unix programmers would be used to the interface defined by syslog.h, and many implementations (such as glibc) have no real limit on the size of the syslog message being sent to it, but there is usually a limit on the application listening to /dev/log.
I'm wondering if anyone knows a way to find the maximum message size for the sysl...
I'm running Ubuntu 10.04 Desktop on a headless machine to act as a server and a laptop dual-booting W7 and Ubuntu 10.04. I have a network setup so I can vnc, ssh from the laptop to the server.
My question is what is some good software to run on the server that can perform scheduled full backups of clients within the network. It should b...
I am having a slight problem with some structs in a kernel module I'm building, so I thought it would be nice if there was an easy way to print out structs and their values - and below is a small userland example of what I mean.
Say we have the simple C example as below (given in form of a bash commands):
FN=mtest
cat > $FN.c <<EOF
#i...
I have for several years tried to get an estimate of the emacs user base.
Does anyone have good estimates besides the naive guess of the Linux/unix install base?
...
We have a few linux based (Centos) virtual machines which are to be used as distributable virtual appliances. We want to be able to compress them as much as possible for distribution ( via tar.gz, zip, etc).
We've removed all unnecessary files (.log's, /tmp/*, /var/log/, etc) and have written /dev/zero to the free space on the disk....
Hello guys,
I would like to learn about linux/Unix kernel programming for scalable multi processors (smps). I found this book UNIX(R) Systems for Modern Architectures http://www.amazon.com/UNIX-Systems-Modern-Architectures-Multiprocessing/dp/0201633388/ref=pd_rhf_p_t_3 . Is there any other good resources or a better book since its relea...
I have a folder on my webserver (apache), which contains gnupg public keys:
\myfolder
--- my.gpg
--- your.gpg
They are chown apache:apache.
I want to make the permissions as strict as possible but leave it possible to have a user view the file online (http://mydomain.com/files/my.gpg).
Why do I have to give the file execute permis...
I want to be able to run a command from my machine using ssh and pass through the environment variable $BUILD_NUMBER
Here's what I'm trying:
ssh [email protected] '~/tools/run_pvt.pl $BUILD_NUMBER'
$BUILD_NUMBER is set on the machine making the ssh call and since the variable doesn't exist on the remote host, it doesn't get picked up....
On Linux, is there a way to embed version information into an ELF binary? I would like to embed this info at compile time so it can then be extract it using a script later. A hackish way would be to plant something that can be extracted using the strings command. Is there a more conventional method, similar to how Visual Studio plant ver...
I'm fairly new to linux(ubuntu 10.04) and a total novice to assembler. I was following some tutorials and I couldn't find anything specific to linux.
So, my question is, what is a good package to compile/run assembler and what are the command line commands to compile/run for that package?
...
#kernel build system and can use its lanauge
ifneq($(KERNELRELEASE),)
obj-m:=helloworld.o
else
KDIR:= /lib/modules/2.6.33.3-85.fc13.i686/build
all:
make -C $(KDIR) M=$(PWD) modules
clean:
rm -f *.ko *.o *.mod.o *.mod.c *.symvers
endif
The error is:
makefile:2:* missing separator . stop
but for the ifneq($(KERNELRELEASE),), if...
I have SEVERE space restraints as far as linux goes, since I run linux off a 4GB flash drive. I know GHC is the preferred compiler for Haskell, but the GHC package is 280MB, which is way too big for me. Is there a smaller Haskell compiler for linux that works fine?
...
Hi,
On OpenSuse 11.2, I successfully compiled, linked, and ran the following code which installs a data source for a MySQL database with unixODBC:
#include <iostream>
#include <sql.h>
#include <sqlext.h>
#include <odbcinst.h>
/* Add a data source for the following MySQL db: db=testdb, username=test, password = test. */
void inst()
{
...
Suppose we do a malloc request for memory block of size n where 2 ^k !=n for k>0.
Malloc returns us space for that requestted memory block but how is the remainig buffer handled from the page. I read Pages are generally blocks of memory which are powers of two.
Wiki states the following:
Like any method of memory allocation, the heap...