climsg 0.1.1 - Interprocess communication

Miscellaneous tools
Post Reply
Message
Author
User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

climsg 0.1.1 - Interprocess communication

#1 Post by vovchik »

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,
vovchik

PS the source is here: http://cli-apps.org/content/show.php/CL ... ent=148626
Attachments
climsg-0.1.1.pet
(5.61 KiB) Downloaded 289 times

Post Reply