Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I want to check my email online. So I created a .cgi page, in which I have:
`fetchmail`;
and then open up my mail folder. It doesn't work.

I think the problem is that fetchmail is taking a little too long so it times-out when the webpage loads.

(I tried printing `man man` which printed. But `man tcsh` won't show up since the man-page for tcsh is much larger. So I suspect large system commands are timing out.)

How is this fixed? Thank you in advance.

Replies are listed 'Best First'.
Re: fetchmail
by chromatic (Archbishop) on Jul 14, 2002 at 07:33 UTC

    You may have better luck using an IMAP or POP3 module from the CPAN. Another approach is to put fetchmail into your crontab so you can avert some of the lengthier downloads.

      I looked into both suggestions. CPAN isn't installed in my server, and I don't have permission to use crontab. Any other ideas? Thanks, I appreciate it.