Display on Bash

Lucas Peet sirsky at lucastek.com
Fri Jun 27 18:29:48 CDT 2003


Sorry again for the top-post - one word: Outlook.

Anyhow, what it seems he's after is a simple script that, like he says,
outputs text to the terminal via cron.  Not that hard.  A simple 'echo'
or 'printf', as mentioned before would be sufficient.  He's just after a
starting place, so nothing schmancy (reading a config file, etc...) He
can edit the script to change what is output by hand right now (I
think).

Thing is...how would you accomplish this with either echo or printf, but
having the script only output to a 'live' terminal - one that is
currently logged into, so the text isn't output to the other 7 (or
fewer) vterms that are still sitting at a login: prompt?

Seems to me this would have to test whether the terminal is active or
logged into, then write directly to the terminal via the char device in
/dev.  Guess you could check /proc for active terminals, then write
directly to them...but I don't know how this would be accomplished in
Perl with printf or some such.

-Lucas

-----Original Message-----
From: owner-kclug at marauder.illiana.net
[mailto:owner-kclug at marauder.illiana.net] On Behalf Of Jonathan Hutchins
Sent: Friday, June 27, 2003 9:07 AM
To: Ben Coffman
Cc: kclug at kclug.org
Subject: Re: Display on Bash

Those will all work in the correct development environment.  Again, you 
haven't said if you want output to multiple users or results to the
person who 
ran the program. 




More information about the Kclug mailing list