Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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

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
Node Status?
node history
Node Type: note [id://412580]
help
Chatterbox?
[marto]: I told our client this, they spent many years and lots of consultants to try and get it to do what they wanted. They're ditching it now
[Discipulus]: I hope at least a minimal implementation, in the middle of july i'll have the first introductional course..
Discipulus nemo profeta in patria..

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-06-27 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (601 votes). Check out past polls.