









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] Getting the message out (to an X user)
I got yer POP-UP, right HERE!
(hehehehe)
Ed:
Not Windows(TM), Windows User(TM). What can you do? You can replace
the hardware, but you're still stuck with Windows(TM) users.
shrug.
James:
YAD (Yet Another Daemon)....
I used KDE's kdialog, and wrote a little Perl scripty around it. It
watches for a text file. When it sees it, it calls kdialog, and puts it
into the background (so other messages can be called), and deletes the
text file. Sleeps for one second and repeats. (If the text file
doesn't exist, it just sleeps and repeats.)
This will allow me to send multiple messages, and have them all pop up,
given that the second message doesn't overwrite the first before the
popup daemon displays and destroys text file.
It's a very simple thing, but it seems to be working. Then, I created a
batch file to run my script in ~/.kde/Autostart.
jody
James Hamilton wrote:
> If you're in x running a small daemon in the background that does this started
> from your .xsession should be pretty straight forward. Perl/Tk or Perl/Gtk
> could make short work of that task. I'm thinking you want a window to pop up
> for a user right?
>
> On Thu, May 27, 2004 at 01:29:03PM -0600, Ed Brown wrote:
>
>>Pop-up message?! What do you think this is, winblo.., err, rather,
>>Windows(TM)? =)
>>
>>Don't know really, but you might consider:
>>-sending e-mail (echo "Restart App!" |mail -s "New Config Alert"
>>user_name)(sends mail to local user)
>>-using 'write' (requires user to have a terminal window open)
>>
>>-Ed
>>
>>
>>On Thu, 2004-05-27 at 12:12, Jody Harris wrote:
>>
>>>I have a "daemon" that runs a task in the background. When the daemon
>>>is finished, I would like it to send a message to the desktop user
>>>(running KDE 3.2 over X) to restart the primary desktop application.
>>>(Unfortunately, the software cannot be configured to periodically scan
>>>for new files, so the only way to "find" them is to close the app and
>>>restart it.)
>>>
>>>How I can I a script (effectively a console user, with no shell) send a
>>>pop-up message to another user (known, default user, in this case)?
>>>
>>>Thanks,
>>>jody
>>
>>_______________________________________________
>>NMLUG mailing list
>>NMLUG@nmlug.org
>>http://www.nmlug.org/mailman/listinfo/nmlug
>
>
--
http://www.RealizationSystems.com/ -- start communicating
http://www.GalacticSlacker.com/ -- read it and weep
http://www.NMPerspective.com/ -- a Southwest Perspective
|
|