Author Topic: Alternative way to run cron? : dailymail, signup and bounce  (Read 2413 times)

davido

  • Posts: 3
    • View Profile
Alternative way to run cron? : dailymail, signup and bounce
« on: March 06, 2005, 02:39:32 am »
I could not get wget command to run at all, but found that lynx works fine for dailymail, signup and bounce, as follows:

1. Daily mail cron job:
lynx > -O /dev/null -dump http://domainnnn.com/listmail/dailymail.php?pw=mYpAssWord 1> /dev/null 2> /dev/null

2. In signup-list1.cgi
$http_program = "lynx -dump " . $listmail_url . "/signup.php";

3. In bounce.cgi
$http_program = "lynx /dev/null -dump " . $listmail_url . "/bounce.php";

Two points:

A) Are there likely to be any problems with operating Listmail as above ?
B) I hope the above assists other Listmail users having problems with wget.

:shock:  Davido

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Alternative way to run cron? : dailymail, signup and bounce
« Reply #1 on: March 06, 2005, 05:38:14 am »
Davido,

There should be no problem with running your cron task as you are as long as lynx properly closes its process.

This is a good example of an alternative to wget.  You might also have success with curl or fetch, as noted in this post.

Regards!
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

davido

  • Posts: 3
    • View Profile
Alternative way to run cron? : dailymail, signup and bounce
« Reply #2 on: March 06, 2005, 12:27:47 pm »
Thanks for your feedback Dean.
 
What kinds of things may occur if lynx does not properly close its processes?

Regards

Davido

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Alternative way to run cron? : dailymail, signup and bounce
« Reply #3 on: March 07, 2005, 02:19:02 pm »
I am not sure.  If the processes never "die" then I would guess that a server limit on running processes might be reached.  The best thing you can do, if you can, is run the command from the command-line (SSH) and see if you are automatically returned to the command line after running lynx.  If you are, then the process has completed and should not remain open with the command-line you are using.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

davido

  • Posts: 3
    • View Profile
Alternative way to run cron? : dailymail, signup and bounce
« Reply #4 on: March 07, 2005, 02:36:36 pm »
Thanks again Dean. I can also discuss this with my web host and get his input.

In the meantime, I've also been able to get Listmail to run using wget :)

Thanks for your great support and followup - it's great to see in a software provider.

Regards

Davido  :D