Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 22:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
climsg 0.1.1 - Interprocess communication
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 05 Feb 2012, 17:20    Post subject:  climsg 0.1.1 - Interprocess communication  

Dear puppians,

Here is climsg (v.0.1.1), which I compiled in Lucid. It allows you to create and use a message queue, enabling communication among processes. Here is the description:
Quote:
Climsg is a simple inter-process communication program, mostly designed for scripts that don't usually have such a thing.

Messages can be sent, received, repeated or flushed from the queue, the message system is handled by the kernel, so any modern kernel should be fine, if you have compiled your own kernel you may have to 'opt in' the message system.

Messages can use the default 'key' or can specify a custom 'key' allowing for semi-private communications, also message 'types' can be used, a type is any integer > 0, only messages of the correct type will be peeled of from the queue and printed to stdout, type 0 is a special case and is use to receive any message regardless of 'type' of course the 'key' must match as well.

Because the messages are handled by the kernel, messages can be passed to and received back from a chroot environment.

Queues are FIFO and LOCAL only.


I see it as useful in programs such as gtkdialog, where vars cannot be assigned on the fly within a gui. Now this is possible, since the messages created by climsg can be retrieved by type and key.

The man page is in /usr/local/share/man/man1/climsg.1.gz, and an example program is in /usr/local/share/doc/climsg/climsgexample.

Have fun...

With kind regards,
vovchik

PS the source is here: http://cli-apps.org/content/show.php/CLIMsg+%28C%29ommand+%28Li%29ne+%28M%29essage?content=148626
climsg-0.1.1.pet
Description 
pet

 Download 
Filename  climsg-0.1.1.pet 
Filesize  5.61 KB 
Downloaded  131 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0504s ][ Queries: 12 (0.0158s) ][ GZIP on ]