Author Topic: CRON from windows problem  (Read 4511 times)

claudehayn

  • Posts: 6
    • View Profile
CRON from windows problem
« on: May 14, 2004, 10:34:47 am »
Hello,

We are running a schedualed task on our windows serve to act as a cron job.

We are using c:\winnt\wget.exe -T 0 -q -O c:\mycron.txt -T 0 http://www.yoursite.com/mail/dailymail.php?pw=YourDailyPass

with the correct site and password.  It is not working.  The mycron.txt file is empty.  Is this correct?

Claude

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
CRON from windows problem
« Reply #1 on: May 15, 2004, 12:16:27 am »
Claude,

Have you verified that wget is accessible with the command C:\WINNT\wget from a standard DOS Prompt?  (Start -> Run -> "cmd")
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

claudehayn

  • Posts: 6
    • View Profile
wget from the CMP prompt
« Reply #2 on: May 15, 2004, 05:38:35 am »
Hello,
I get :


C:\Documents and Settings\Administrator>c:\wi
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

C:\Documents and Settings\Administrator>

When I run wget from the CMD prompt.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
CRON from windows problem
« Reply #3 on: May 15, 2004, 07:41:31 pm »
Claude,

There isn't much I can recommend except for trying the command manually from the prompt:

c:\winnt\wget.exe -T 0 -q -O c:\mycron.txt -T 0 http://www.yoursite.com/mail/dailymail.php?pw=YourDailyPass

If this works then you should be able to set up a daily scheduled task in windows to call this commandline and have no troubles.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

claudehayn

  • Posts: 6
    • View Profile
CRON from windows problem
« Reply #4 on: May 16, 2004, 04:50:41 am »
Dean,

Thanks for your responses.  Our mycron.txt is empty.  Is this the way it should be?

Claude

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
CRON from windows problem
« Reply #5 on: May 16, 2004, 11:28:41 am »
Hmm, I just tried running the command below and my c:\mycron.txt contains my source code from listmailpro.com

c:\winnt\wget.exe -T 0 -q -O c:\mycron.txt -T 0 http://listmailpro.com

When dailymail runs it should say something like:

 Done!<br>No scheduled messages.<br>

This is the output I received when running the following command:

c:\winnt\wget.exe -T 0 -q -O c:\mycron.txt -T 0 http://listmailpro.com/demo/dailymail.php?pw=dailymail

Oops.. I just noticed there are two "-T 0" paramaters in our command-lines.  Looks like I need to update my help page.  This does not seem to cause a problem.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

claudehayn

  • Posts: 6
    • View Profile
CRON from windows problem
« Reply #6 on: May 18, 2004, 02:51:41 pm »
OK, I give.

I have looked through our ListPro download file, our installed ListPro product on our web site, the ListPro tech support area, and the ListPro members area.  I cannot find any reference to the code that is supposted to be in the mycron.txt file.  

Please point me towards or email me the source code that is supposed to be in the mycron.txt file.

Thank you,

Claude Hayn

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
CRON from windows problem
« Reply #7 on: May 18, 2004, 10:07:11 pm »
Claude,

The text that should appear in your mycron.txt file is simply the output of the dailymail script - the same as you would see if you manually browse to your dailymail URL..
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

claudehayn

  • Posts: 6
    • View Profile
CRON from windows problem
« Reply #8 on: May 19, 2004, 09:23:00 am »
Do I need to run a seperate job for each list, we have 10.

Btw,  after going to http://www.gnu.org/software/wget/manual/wget-1.8.1/html_mono/wget.html I changed the string to:

c:\winnt\WGET.EXE -T 0 -q  c:\mycron.txt http://www.bcs-XXXX.com/mail/dailymail.php?pw=correctPW here.

Claude

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
CRON from windows problem
« Reply #9 on: May 20, 2004, 06:47:31 am »
No, just run dailymail once per day and it will handle everything across all of your lists.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting