Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by tachyon (Chancellor)
on Dec 06, 2004 at 04:10 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://412580]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-23 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found