[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: looking for a clock, minimum and can play sound

Camaleón wrote:
On Tue, 04 Jan 2011 20:06:30 +0800, Zhang Weiwu wrote:

Hello. I am looking for an count-down clock. Features are:


If you find no aplication that suits your needs, may I suggest a "do-
it-yourself" work? :-)

Dialog (command line ncurses scripting) and xdialog (GUI) can help you here. It's very easy to use and just basic bash programming skills needed.

Some tutotials with usage samples:

If you get the source of dialog then you will find plenty of examples in the 'samples' dir.

Funny that you mentioned 'dialog': I just had a run-in with it. I wrote an app. in 2005 to use the '--form' option of it to fill out a form and pass the data to a daemon. Come to find out that my dialog script no longer worked: I got a -1 rc and the message 'Expected 8 parameters and found only 3'. That message was not very helpful so I got the source and modified 'dialog.c' to show *what* parameters it found. Turned out that dialog got tripped up by blanks in the form labels. But how come it ever worked?


Reply to: