in reply to Re: Re: Re: Re: IPC Message Queues with IPC_NOWAIT
in thread IPC Message Queues with IPC_NOWAIT

Where do you think you were setting IPC_NOWAIT from? try using strict.
use IPC::SysV qw(IPC_PRIVATE IPC_CREAT S_IRWXU IPC_NOWAIT); $id = msgget(4335, IPC_CREAT | S_IRWXU); $go = 1; while($go){ if(msgrcv($id, $rcvd, 512, 0, IPC_NOWAIT)){ ($typ_rcvd, $rcvdData) = unpack("l! a*", $rcvd); print "Got------>$rcvdData\n"; } print "Wait\n"; sleep 1; }


-Waswas

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: IPC Message Queues with IPC_NOWAIT
by Anonymous Monk on Dec 09, 2003 at 21:03 UTC
    DUH!!! You are the man. Appreciate the help and I'm going to go hide in shame. Thanks again.