in reply to Re: use ftok to access shared memory
in thread use ftok to access shared memory

The OP is using the pipe variant of open(). I presume that ./ftok is a C program that reads (via key_t ftok(const char *pathname, int proj_id);) the shared memory for pathname /tmp/ICP/shared_memory and proj_id 1, sending stuff on STDOUT.

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.

Replies are listed 'Best First'.
Re^3: use ftok to access shared memory
by earlati2 (Beadle) on Feb 15, 2006 at 11:00 UTC
    It is as you guess.

    enzo@P0101222 shared_memory$ ./ftok /prd/b_BCM/dat/IPC/shared_memory1 1

    101a3ce

    I read the value 101a3ce from the stdout

    But I'm looking for a better solution