Subj : Re: python function reference for mystic To : Ragnarok From : xqtr Date : Thu Oct 07 2021 04:38 pm Ra> Second use case "receive messages" Ra> Here I am stuck, I can write a python daemon that receives the messages, Ra> but I can't find a way to inject them to the mystic user (if it is Ra> logged) Ra> But that daemon runs in its context separate from the mystic process. Ra> Therefore I do not have access to the user's session. Ra> How can I send this kind of message to the user from python? Make the server/daemon, to store the incoming messages to a file, like a queue. Then you can make another Mystic script, MPS or MPY to read that file and display the info on the user, for example when he logs in, when he enters a menu etc. It's very simple this way, i think. Also, instead of storing all the incoming data to one file, you can use a directory and each incoming packet, be stored in a separate file. This way, you will avoid any file access problems, while both mystic and the daemon, need to use the same file. Each time, you process a file/packet, the mystic (local) script, can delete it. Ra> Can you give me a simple snippet of how to use that mci code from ptyhon? No need for that, if you do it like i say above :) .. :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32) * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111) .