Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: converting a command-line program to one with a "pretty" interface

by tachyon (Chancellor)
on Dec 06, 2004 at 04:10 UTC ( #412580=note: print w/ replies, xml ) Need Help??


in reply to converting a command-line program to one with a "pretty" interface

With a program that sleeps for N units of time and then does stuff the obvious solution would be to make it read a config file as soon as it wakes up, then the bulk of the interface just edits this file. On *nix you could use a HUP signal to make the daemon re-read the config file. $SIG{HUP} = \&read_config;

cheers

tachyon


Comment on Re: converting a command-line program to one with a "pretty" interface
Download Code
Re^2: converting a command-line program to one with a "pretty" interface
by punkish (Priest) on Dec 06, 2004 at 04:17 UTC
    thanks for the advice. The config file is read only at start-up time -- it contains the various email addresses and db params. Once the program gets going, the only interaction with the user would be to display the status (perhaps by showing the log file of what has been done) or let the user stop/restart the program.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://412580]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-08-28 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (256 votes), past polls