How to check the status between 2 servers ?
There are 2 servers, they need to know the status(live oe dead) each other. my method is a long tcp connecting, Is there any better method? thanks. ...
There are 2 servers, they need to know the status(live oe dead) each other. my method is a long tcp connecting, Is there any better method? thanks. ...
Possible Duplicate: Linker driving me mad! Please help. Hi, I have used the --whole-archive flag and it does not have the desired effects. What can I do? Who should I ask? More detailed description here. Please help. Thanks. ...
Hi All, I have a process (Spark chat client) which needs to be run when my ubuntu boots up. For this I have done followings I created a run.sh file which will fire up my application (and I check its working) I created a symbolic link from both /etc/rc5.d/ and /etc/rc3.d/ to my run.sh file. (Symbolic link is also working fine) But...
I was recently studying the book named Advanced Linux Programming and I ran into this question: The book said you should use sig_atomic_t variable type to be sure that if you set a global flag or counter in a signal handler function, context switch does not occur between the arithmetic operations(i.e. ++) and saving those into a register...
Hi, This is a new question after my long rant. The problem here is, I have a global vector<Base*> vObjs in my main application and I got Derived objs in each static lib linked to the application. If I specify the vObjs to have an init_priority of 101 and each obj in static libs to have say... 1000, is it guaranteed that vObjs will ...
Hi, I have a server that hosts several domains. From one of the domains, using a php script I want to be able to append a few lines to the .htaccess of other domains. For example from masterdomain.com I want to append some lines to the .htaccess of otherdomain.com. So from a php file in /home/masterdomain/www/ I want to append a few li...
Looking for a command line tool for Windows / linux environment that can check a PDF file for any errors (not for repairing). ...
Hi, i had these questions in my mind since i was reading some new topics on processes and threads. I would be glad if somebody could help me out. 1) What happens if a thread is marked uncancelable, and then the process is killed inside of the critical section? 2) Do we have a main thread for the program that is known to the operating s...
In my application I need to use ssl. While redirecting from http//mydomain.com to https//mydomain.com session data is lost in case data is huge. I have tried removing https to http, but still no use. My server is on a linux machine. Please help me out. ...
hi guys, I'm a Java developer and I'm using Ubuntu to develop. The project was created in Windows with Eclipse and it's using the CP1252 encoding. To convert to UTF-8 I've used the recode program: find Web -iname \*.java | xargs recode CP1252...UTF-8 this command gives this error: recode: Web/src/br/cits/projeto/geral/presentation/...
Which of these languages is better for opengl game with primary platform linux? I would like if you compared them in performance and libraries support. ...
I have a "Data" directory, that I rsync to a remote NAS periodically via a shell script. However, I'd like to make this more efficient. I'd like to detect if something has changed in "Data" before running rsync. This is so that I don't wake up the drives on the NAS unnecessarily. I was thinking of modifying the shell script to get the ...
hi all, we use svn(subversion) for our source repository. On the same box, we build our project PLUS deploy it onto an appserver. All the team members(under 10, in number) will login to the Linux (ubuntu server) box and run the build script. Question : I would like to know which directory is typically used for creating the home directo...
I'm troubleshooting a C++ binary on RHEL/CentOS 5, which has problems with the openssl shared libraries. I don't do much C/C++ programming, and I'm having trouble finding the root issue. What seems to be going wrong is that the application is linking to specific versions of libcrypto and libssl (0.9.8), instead of the symlinked paths of...
I plan to install module usbserial.ko into my linux kernel 2.6.29, anybody knows the procedure? Thanks ...
I've just added a .profile to my bash shell. However, I've noticed the error "-bash: print: commant not found" keeps on appearing even if you are changing to a valid directory. My .profile just contains a few exports. [rob@mypc:/home/rob]cd apps -bash: print: command not found [rob@mypc:/home/rob/apps]cd util -bash: print: command not ...
Is it possible to know the pid of the iwevent process in the following bash script: #!/bin/sh ( iwevent | logger -t IWEVENT ) & echo the pid is: ??? Note that iwevent run until ctrl-c signal. FYI. I run this script in a /etc/network/interfaces "up" statement and I want to kill the running iwevent process in the related "down" stateme...
My Java program is in working order when i use it under Windows(Eclipse and Bluej). I compress it to a Jar and send it to my red hat and bang. nothing works. It breaks on the weirdest things, such as text field set text will not show, JPasswordfield just disappeared, Java AWT ROBOT dies too... the list goes on, first i thought it must be...
My OS: Linux version 2.6.26-2-xen-686 (Debian 2.6.26-25lenny1) ([email protected]) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Fri Sep 17 00:54:08 UTC 2010 On my VPS, I need to use both php and ruby. So I want to use apache to handle my php sites and nginx for the ruby sites. And pass the php request to apache thro...
The cmd finger -s gives output in the format : Login Name Tty Idle Login Time Office Office Phone sentman John Martin pts/4 Oct 8 13:04 (professional.wp.mvit.in) 41552289 I just want the output to be in format Login Name sentman john Martin ...