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 Wed 26 Nov 2014, 16:37
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 Posts_count_1  
Author Message

Joined: 23 Oct 2006
Posts: 1287
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:
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,

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

Filename  climsg-0.1.1.pet 
Filesize  5.61 KB 
Downloaded  141 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
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 attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0408s ][ Queries: 13 (0.0044s) ][ GZIP on ]