Hey,
Maybe a timer to automatically select "y" or "n" after XX seconds would do the trick too?
cPanel is a front-end gui for (mostly) LAMP environments. A lot of hosting companies use it and I think it's also downloadable freeware to be installed on any compliant server environments. There is an area where you can search the cpan module archive and install directly from their site. It's pretty useful and I'm sure there are people using it who might not have any Perl and/or Linux background.
As far as closing the STDIN goes, I don't think that users using the gui have that option, but I never thought of that.
While installing a module, cpanel shows an iframe-looking (java?) window within the page. In that window, messages from the make are displayed in real-time as they are printed to the "screen".
Hope to see it fixed... the module is great.
Ken Parisi
Programmer
973-300-2148
B-109
Show quoted text-----Original Message-----
From: Phil Pearl (Lobbes) via RT [mailto:bug-Mail-IMAPClient@rt.cpan.org]
Sent: Tuesday, May 25, 2010 4:14 PM
To: Ken Parisi
Cc: DJKERNEN__NO_SOLICITING__@cpan.org
Subject: [rt.cpan.org #57659] mail::imapclient small issue
<URL:
https://rt.cpan.org/Ticket/Display.html?id=57659 >
On Thu May 20 07:55:25 2010, kparisi@sussex.edu wrote:
...
> I wanted to install it on my cPanel server using their GUI module
> installer. It gets hung up on the (n/y) question and doesn't install
> properly. Since it's done using their GUI, there is no place to respond
> to that message. I tried installing it a couple times via this method,
> but it never fully installed and I suspect it's because of this prompt
> during the installation.
Hi Ken, thanks for the report.
I don't use cPanel so I've not seen this occur. It is interesting that it gets hung up
here as Makefile.PL uses prompt() (provided by ExtUtils::MakeMaker) which I would hope
could do the right thing. It is supposed to detect when there is no STDIN (or if
PERL_MM_USE_DEFAULT is set to true) and not prompt for input. I assume that means there
is still a STDIN available in cPanel. I wonder what/how cPanel is doing what it is
doing and if it has an option to close STDIN or set the PERL_MM_USE_DEFAULT environment
variable so that users of cPanel do not get hung up here.
I could also make the default behavior to be just to not prompt and perhaps require an
extra command line argument to do the extended tests I suppose...