Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Call incoming.pl from login.cgi

Quote Reply
Call incoming.pl from login.cgi
Hi,

is it possible to call the incoming.pl every time i call the login.cgi? in that case i am independent from any CronJob.

Frank

Quote Reply
Re: Call incoming.pl from login.cgi In reply to
Hi,

Yes, you would need to add:

system ("/full/path/to/batch/incoming.pl");

into your login.cgi script.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Call incoming.pl from login.cgi In reply to
Cool,

it works! Maybee this is a feature for the next GM version. For users without the ability for scheduling cronjobs.

Thanks

Frank

Quote Reply
Re: Call incoming.pl from login.cgi In reply to
where exactly can i add this line in login.cgi?
alex would you say this is better than the cron job?

Quote Reply
Re: Call incoming.pl from login.cgi In reply to
In the sub main routine.

The benefit of using these codes that users will automatically get their new email messages. With cron, there is a delay in getting new email messages. But the system call option also uses a lot more system server resources, including CPU/Memory than Cron.

So, it is a toss-up...

Regards,

Eliot Lee