Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Run incoming.pl without cron!

Quote Reply
Run incoming.pl without cron!
Hello Adrian!

I am looking for a suggestion as to how to run incoming.pl without cron.

Earlier Alex suggested by

my....


somewhere in the login.cgi so that before a user logs in he gets an email.

The possibilities would be join.cgi, login.cgi, register.cgi and webmail.cgi

Would be thankful, as I now have to run it manually.
Quote Reply
Re: [rajani] Run incoming.pl without cron! In reply to
You mean this:

my $results = `/full/path/to/cgi-bin/batch/incoming.pl`;



I added that to all files in the user dir and it worked great.. Just can't get it to work now.

Good luck

Tracy
Quote Reply
Re: [Welsh Dragon] Run incoming.pl without cron! In reply to
Hello there!

I used is only in login.cgi until today. I would like to use it further.


Yes, I mean this but now some things are new and I got confused. Thats why I asked.

I also thought of inserting in the other cgis and so I thought if this would be possible.

Thanks

Last edited by:

rajani: Jun 27, 2002, 11:32 AM
Quote Reply
Re: [Welsh Dragon] Run incoming.pl without cron! In reply to
Hello Tracy!

It does work with the login.cgi like before.

The thing is that there has been some changes like () brackets + local added to close some areas of the scripts. This does not allow the use of the method suggested by Alex earlier. But actually it should not be difficult at all to use it somewhere in there. I suggest it to use it as the following in the version 1.28 of login.cgi as follows:

Code:
elsif (!$IN->param('username')) {
my $results = '/usr/www/users/rajani/cgi-bin/email/batch/incoming.pl';
return GMail::NoAuth->print_page($CFG->{templates}->{login});
}

Mind you, use the inverted commas exactly the way shown here or it will not work. Those commas are similar to the inverted commas in the following line:
Code:
use strict;
use lib '/email/admin';

in the same script, for your information.

Last edited by:

rajani: Jul 8, 2002, 10:58 AM
Quote Reply
Re: [rajani] Run incoming.pl without cron! In reply to
Hi Rajani :)

I'm still using

my $results = `/full/path/to/cgi-bin/batch/incoming.pl`;


in all the files... including webmail.cgi and everything works fine Smile

Tracy

(who is happy that everything works well)
Quote Reply
Re: [Welsh Dragon] Run incoming.pl without cron! In reply to
Hello Tracy!

I wonder why I could not get it to work? I will give it a try. Where did you insert in the webmail.cgi? Right in the begining, did'nt you?
Quote Reply
Re: [Welsh Dragon] Run incoming.pl without cron! In reply to
Hello!

Ha! I also got it to work! Do not understand those i-commas.
Quote Reply
Re: [rajani] Run incoming.pl without cron! In reply to
Hi

Nope..

my $results = `/home/httpd/vhosts/welshdragon.net/cgi-bin/batch/incoming.pl`;

is the very last line of each of the 5 files.

join.cgi - login.cgi - logout.cgi - register.cgi - webmail.cgi



I am using Version: 2.0.6 if that makes any difference



Tracy

Im still using this method even though I changed hosts and can now have cron jobs.. It works.. so I am not going to mess with it