Search Results

Search: Posts Made By: pshaikh
Forum: Red Hat 09-23-2010
8,197
Posted By pshaikh
Hi fpmurphy I looked in...
Hi fpmurphy

I looked in /usr/share/cluster/script.sh (and I think that's the template for custom app failover?). Here is how it looks like

#
# Script to handle a non-OCF script (e.g. a normal...
Forum: Red Hat 09-22-2010
8,197
Posted By pshaikh
Hi Neo Cluster Admin Guide doesn't speak...
Hi Neo

Cluster Admin Guide doesn't speak about setting up 'custom HA agent' or HA for custom applications.

Referring to this guide, i have successfully set up my 2-node red hat cluster; and...
Forum: Red Hat 09-21-2010
8,197
Posted By pshaikh
Custom HA agent - Red Hat Linux Cluster
Hi experts, I have some custom application which I need to make Highly Available using red hat cluster service. How do I do it? i know in /usr/share/cluster i shall find HA agents for well known...
Forum: Red Hat 08-11-2010
14,432
Posted By pshaikh
HA Cluster solution for Linux - which one to use?
Hi all experts,

I need your kind suggestions or feedback on choice of clustering software for red hat linux nodes running certain applications which I need to make highly available.

Minimum...
Forum: Programming 04-01-2009
7,843
Posted By pshaikh
Hi, I know :) May be I was not clear enough...
Hi,

I know :) May be I was not clear enough of what I am trying to do,

The program is as follows -


int main()
{
if( write(STDIN_FILENO,"arghh!",6) == -1 )
{
...
Forum: Programming 04-01-2009
7,843
Posted By pshaikh
Hi I know that a.out should be executed as...
Hi

I know that a.out should be executed as "./a.out" , it was typing mistake.

file.txt is redircted as a.out's standard in put. In my program, I am writing to standard input (as shown in the...
Forum: Programming 03-31-2009
7,843
Posted By pshaikh
Interesting! I obtained file status flags of...
Interesting!

I obtained file status flags of STDIN_FILENO, and it is open for O_RDWR.

Why then .\a.out < file.txt doesn't write "arghh!" to file.txt?
Forum: Programming 03-31-2009
32,065
Posted By pshaikh
Below code - #include <iostream> int...
Below code -
#include <iostream>

int main(int argc, char* argv[])
{
std::cout << "argc="<<argc<<" argv="<<argv<<std::endl;
return 0;
}


Displayed output at your end -

argc=0 argv=0
...
Forum: Programming 03-31-2009
16,710
Posted By pshaikh
rvan...
rvan (https://www.unix.com/members/302021153.html),

Can you try with 'optimization' off in your compiler flags?(whats your OS and machine)

On most platforms, size of word is size of...
Forum: Programming 03-31-2009
16,710
Posted By pshaikh
This is because, compiler 'knows' type of array...
This is because, compiler 'knows' type of array and it places instructions of pointer arithmetic using size of 'type'.

so &array[1] - &array[0] = number of elements of type of 'array' between...
Forum: Programming 03-31-2009
4,798
Posted By pshaikh
HTTP doesn't keep connection all the time. Isn't...
HTTP doesn't keep connection all the time. Isn't it?

@Topic
You can implement a socket program the way you like. Why should anyone want to have connection all the time, even when client and...
Forum: Programming 03-30-2009
16,710
Posted By pshaikh
Try this - int main() { struct...
Try this -


int main()
{
struct whatever w;
char s;

if( (char*)&w > & z)
printf("Size of whatever %d\n",(char*)&w-&z)
else
printf("Size of whatever...
Forum: Programming 03-30-2009
16,710
Posted By pshaikh
I was hoping it should produce a correct number,...
I was hoping it should produce a correct number, but that would happen in absence of processors not needing any padding at the end of structures
Forum: Programming 03-30-2009
16,710
Posted By pshaikh
Yes, I guess you can do; something like ...
Yes, I guess you can do; something like


#pragma pack(1)
#include <header.h> // Header file which contain opaque structure definition
int main()
{
char begin;
struct...
Forum: Programming 03-29-2009
6,862
Posted By pshaikh
littleboyblu, Can you try this one - ...
littleboyblu,

Can you try this one -

void main(){
int *array;
int **ptr = &array;
sub(ptr);
}

void sub(int **ptr){
....//calculates the array dimension
*ptr = calloc(n,sizeof(int));...
Forum: Programming 03-28-2009
32,065
Posted By pshaikh
Can you get core dump and look at the stack?
Can you get core dump and look at the stack?
Forum: Programming 03-28-2009
6,862
Posted By pshaikh
Correction - *ptr has already been...
Correction -

*ptr has already been initialized with address of local variable 'array' as -
*ptr = &array; in statement int **ptr = &array;

ptr has already been initialized with address of...
Forum: Programming 03-28-2009
6,862
Posted By pshaikh
Hi Shamrock, *ptr has already been...
Hi Shamrock,

*ptr has already been initialized with address of local variable 'array' as -

*ptr = &array; in statement int **ptr = &array;

ptr(int**) -> array(int*) -> (uninitialized/invalid...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 04:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy