On Tue 25 Aug 2009, ama...@solutionsforprogress.com wrote: > Unfortunately using restart_count does not address my issue. > > In the http.conf I have the following: > ... > PerlConfigRequire conf/startup.pl > ... > > My test startup.pl has this: > > our $INPUT; > print STDERR "Input:"; > $INPUT = <STDIN>; > print STDERR "you entered $INPUT"; > > My issue is during the first start everything works as I need it to, > "Input:" is printed out to the terminal and the script waits for > input. > > The problem is for the automatic restart everything is tied to the > log files. Everything printed to STDERR goes into the logs and a user > cannot enter any input. > > For the restart how can I print messages and prompt for input?
Don't know if it actually works, but how about POSIX::dup2()ing STDERR/STDIN (or better opening /dev/tty and use this one for reading and writing) to well known file descriptors (say 1000, 1001) when restart_count==0. Then when restart_count>0 you should be able to use them. Torsten -- Need professional mod_perl support? Just hire me: torsten.foert...@gmx.net