Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]RE: [tlug] random in bash [Kmail Notification]
- To: "'tlug@example.com'" <tlug@example.com>
- Subject: RE: [tlug] random in bash [Kmail Notification]
- From: Paul Richter <PaulR@example.com>
- Date: Thu, 7 Mar 2002 20:32:00 +0900
- Content-type: text/plain;charset="ISO-2022-JP"
- Reply-to: "Richter Paul (E-mail)" <RichterPN@example.com>
How about /usr/games/random ? Normally it picks lines at random from an input file, but with the -e flag it returns a random exit code within a specified range. You might use that result with a combination of 'head' and 'tail' to pick a single line from a file containing a list of .wav files. > -----Original Message----- > From: Erwan Loisant [mailto:loisant@example.com] > Sent: Thursday, March 07, 2002 6:54 PM > To: tlug@example.com > Subject: [tlug] random in bash [Kmail Notification] > > > Well, what we have to do for that is write a small bash > script (or using any > other language, even compiled...). > > Do anyone know how to do a "random" in bash ? I guess that > would be the > simpliest way to do that. > > On Thursday 07 March 2002 18:44, Eric O. Flores wrote: > > You are correct the artsplay is instantaneous compared to > play command. > > > > One of the cool things would be to change the mail > notification alert > > randomly to play all of them cute sounds. I downloaded > lots of wave from > > the sites below they make kmail more fun and some of the > other programs > > that allow notificattions. It would be nice to have mail > program like the > > one distributed for the win with lots of animations and cool html > > backgrounds. > > > > cool wav links: > > http://www.filelibrary.com/Contents/Multi-Platform/61/68.html > > http://unclebubby.cis.okstate.edu/commercials.htm > > http://chele.net/commercials.htm > > > > once again Thank you. > > > > 木曜日 07 3月 2002 16:14、Erwan Loisant さんは書きました: > > > On Wednesday 06 March 2002 11:18, Eric O. Flores wrote: > > > > Kmails notification via command line works fine the > only problem I find > > > > is that the commands is delayed about a minute after > the mail is in. > > > > > > > > Is there any way to accelarate the command? > > > > > > I did not notice that... > > > > > > But by the way, I found that it was better to use > "artsplay" instead of > > > "play" while use with KDE. That avoids conflict with the > sound server, > > > and allow to mix, for example, when playing noatun mp3. > > > > > > > 月曜日 04 3月 2002 17:43、Eric O. Flores さんは書きました: > > > > > Thanks! Now I got the AOL announcement with KMail. > > > > > > > > > > 月曜日 04 3月 2002 17:35、Erwan Loisant さんは書きました: > > > > > > On Monday 04 March 2002 17:28, Eric O. Flores wrote: > > > > > > > Kmail has a feature that announces went we receive mail. > > > > > > > It also has a command line. > > > > > > > > > > > > Yes, I use it to display information in a dockable app. > > > > > > > > > > > > > I am wondering can we use this command line to > add a command that > > > > > > > will play a sound file such like the AOL "You > have mail!" If so > > > > > > > can anyone out there teachme the right sequence > of commands. > > > > > > > > > > > > play myfic.wav > > > > > > > > > > > > or: > > > > > > > > > > > > mpg123 myfic.mp3 > > > > > > > > > > > > As you prefer... > > -- > Erwan Loisant > Ph.D. student > > The rose of yore is but a name, mere names are left to us. >
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] A few SPAM questions...
- Next by Date: [tlug] RH7.2
- Previous by thread: [tlug] Re: partition sizes
- Next by thread: RE: [tlug] random in bash [Kmail Notification]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links