Author Topic: Can't get Cron job (Dailymail) to work  (Read 2344 times)

hp3kman

  • Posts: 4
    • View Profile
Can't get Cron job (Dailymail) to work
« on: August 10, 2004, 10:29:30 am »
When I input the cron job as directed, I get this error:

/home/maynard/news.ecometrist.com/adsmart/dailymail.php?pw=password: Unsupported scheme.

Am I doing something wrong?

In addition, I have scheduled mails that never went...could this have caused that (I didn't have my MAILTO setup in my cron file initially).

Thanks!

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Can't get Cron job (Dailymail) to work
« Reply #1 on: August 11, 2004, 06:31:19 am »
Your cron task needs to call the linux utility "wget" as per http://www.listmailpro.com/help/10.html

ie:

/usr/bin/wget -O /dev/null -T 0 http://yoursite.com/mail/dailymail.php?pw=YourDailyMailPass 1> /dev/null 2> /dev/null

It appears that you are trying to run dailymail.php as a linux CGI by specifying the direct path.  This is sometimes not allowed with PHP scripts.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

hp3kman

  • Posts: 4
    • View Profile
Can't get Cron job (Dailymail) to work
« Reply #2 on: August 11, 2004, 07:42:00 am »
I had tried that, but it didn't seem to be working...if I had scheduled email, shouldn't it have sent them???

I've changed it back and now have the MAILTO set...let's see what happens.

Thanks!

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Can't get Cron job (Dailymail) to work
« Reply #3 on: August 11, 2004, 04:51:30 pm »
To be sure if it's working enable "Send report to admin when dailymail runs" on the config page.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

hp3kman

  • Posts: 4
    • View Profile
Still having problems w/ Dailymail...
« Reply #4 on: August 15, 2004, 06:24:46 pm »
Dunno, but now...several days later, I get this:

/bin/sh: - : unrecognized option
Usage:   /bin/sh [GNU long option] [option] ...
   /bin/sh [GNU long option] [option] script-file ...
GNU long options:
 <edited>

Help!

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Can't get Cron job (Dailymail) to work
« Reply #5 on: August 16, 2004, 07:51:26 am »
It seems that you are calling the script directly via it's local filename.  The cron task command should use the URL with the wget program, as follows:

/usr/bin/wget -O /dev/null -T 0 http://yoursite.com/mail/dailymail.php?pw=YourDailyMailPass 1> /dev/null 2> /dev/null
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

hp3kman

  • Posts: 4
    • View Profile
Can't get Cron job (Dailymail) to work
« Reply #6 on: August 16, 2004, 07:55:13 am »
Sorry, but that is exactly how I'm calling it...

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Can't get Cron job (Dailymail) to work
« Reply #7 on: August 21, 2004, 03:47:42 am »
I am not sure why it would say:

/bin/sh: - : unrecognized option

The hyphen, or "-", character is not at the beginning of the command passed to sh.  (The "sh" program in turn runs "/usr/bin/wget")

Please submit a tech support request along with notes about the error and I will take a look.

http://listmailpro.com/support?t=other
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting