Re: [ilugd] How to run script on other machine if ping breaks?

2010-02-06 Thread Ashish SHUKLA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amit Sharma writes: Hi, I have 2 linux servers A and B. Both are running MySQL and A is defined as Master and B as Slave. A ipaddress is 10.10.10.10 and B has 10.10.10.50 Now, in case A goes down due to any reason, I would like that B gets

Re: [ilugd] I am unable to understand this C code

2010-02-06 Thread sudhir kumar
On Sat, Feb 6, 2010 at 4:29 PM, rakesh kumar kumar3...@gmail.com wrote: Hi all,         Today while studying a book i just saw the following lines of code: int main(void) {  int printf(const char *n,...); This is pretty obvious and is declaration of a local function.  int a=1;  

[ilugd] Unable to set virtual environment

2010-02-06 Thread narendra sisodiya
I am trying to run qemu but I think it is very slow Or not working, $ qemu -cdrom Ubuntu_9.10_i386.iso -hda qemu_disk.img -m 256 -boot d open /dev/kvm: No such file or directory Could not initialize KVM, will disable KVM support May anybody tell me about the error. After booting , ubuntu logo

Re: [ilugd] How to run script on other machine if ping breaks?

2010-02-06 Thread PJ
Amit Sharma amit_...@... writes: I have created the script for ip change and other setting but would like to know how to  run it on B at the time when B is unable to get ping request from A for say 5 minutes. If you want to keep it lightweight instead of bringing in the heartbeat framework,

Re: [ilugd] I am unable to understand this C code

2010-02-06 Thread Ashish SHUKLA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rakesh kumar writes: Hi all, Today while studying a book i just saw the following lines of code: int main(void) { int printf(const char *n,...); prototype of the printf(3) function. int a=1; printf(abcdef); return 0; }

Re: [ilugd] Unable to set virtual environment

2010-02-06 Thread Ashish SHUKLA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 narendra sisodiya writes: I am trying to run qemu but I think it is very slow Or not working, $ qemu -cdrom Ubuntu_9.10_i386.iso -hda qemu_disk.img -m 256 -boot d open /dev/kvm: No such file or directory Could not initialize KVM, will disable KVM

Re: [ilugd] I am unable to understand this C code

2010-02-06 Thread rakesh kumar
* I think that GATE questions are generally being asked on the basis of logic and not depend how intelligent our compiler is*. I never experienced that any GATE question have been asked based other than the logic. Sudhir, as you wrote that at first time in the third line, when printf

Re: [ilugd] ILUGD meeting: 2.30pm, Sun., 7th Feb., 2010, SIT, JNU

2010-02-06 Thread Gaurav Mishra
Giving a top-post for a reminder :), See ya guys there. On Fri, Feb 5, 2010 at 6:36 PM, Sudhanwa Jogalekar sudhanwa@gmail.com wrote: Hi, On Wed, Feb 3, 2010 at 4:40 PM, Gaurav Mishra gauravtec...@gmail.com wrote: Hello everyone, Long time since we have had a meeting. So, we will be

Re: [ilugd] I am unable to understand this C code

2010-02-06 Thread Raj Mathur
On Saturday 06 Feb 2010, Ashish SHUKLA wrote: [snip] You include stdio.h to include the prototypes of the functions, but in above case you already declared the prototype of the function which you invoked, so no need to include the header file. Well, you also include it to define the FILE

Re: [ilugd] ILUGD meeting: 2.30pm, Sun., 7th Feb., 2010, SIT, JNU

2010-02-06 Thread Rajesh Lalwani
See you. I know - top post ;) R -Original Message- From: ilugd-bounces+rajesh.lalwani=blogworks...@lists.linux-delhi.org [mailto:ilugd-bounces+rajesh.lalwani=blogworks...@lists.linux-delhi.org] On Behalf Of Gaurav Mishra Sent: Sunday, February 07, 2010 12:47 AM To: Sudhanwa Jogalekar;

Re: [ilugd] Unable to set virtual environment

2010-02-06 Thread Vivek Kapoor
On 02/06/2010 09:53 PM, wahjava...@gmail.com (Ashish SHUKLA) wrote: narendra sisodiya writes: I am trying to run qemu but I think it is very slow Or not working, $ qemu -cdrom Ubuntu_9.10_i386.iso -hda qemu_disk.img -m 256 -boot d open /dev/kvm: No such file or directory Could not initialize

Re: [ilugd] ILUGD meeting: 2.30pm, Sun., 7th Feb., 2010, SIT, JNU

2010-02-06 Thread Andrew Lynn
On Sun, Feb 7, 2010 at 12:46 AM, Gaurav Mishra gauravtec...@gmail.comwrote: Giving a top-post for a reminder :), See ya guys there. On Fri, Feb 5, 2010 at 6:36 PM, Sudhanwa Jogalekar sudhanwa@gmail.com wrote: Hi, On Wed, Feb 3, 2010 at 4:40 PM, Gaurav Mishra gauravtec...@gmail.com