Author Topic: Password issue with Cron?  (Read 2035 times)

sales5

  • Posts: 4
    • View Profile
Password issue with Cron?
« on: September 19, 2004, 11:59:43 am »
I've not had a successful automated message delivery yet. My successful delivery happened manually, when I logged into my administration page first and then typed the location of my dailymail.php script.
http://oil-tech.com/mailist/dailymail.php?pw=MyDailyMailPass
into the browser.

If I'm not logged in the 'Enter Admin Password' pops up whether I add the password into the address or not.

I've read on the forum that wget and permissions has something to do with this but can't find were I read this.

Help most appreciated,
Sean Aughey
www.oil-tech.com

sales5

  • Posts: 4
    • View Profile
Password issue with Cron?
« Reply #1 on: September 19, 2004, 12:21:11 pm »
Murphy's Law at work here. I've had a successful browser address entry with password work for me. I had the same password for 'admin' and 'dailymail', I changed dailymail to a different password.

I've changed the Cron password entry to match.

Sean

sales5

  • Posts: 4
    • View Profile
Password issue with Cron?
« Reply #2 on: September 20, 2004, 08:17:33 am »
Update: Although I can get dailymail to go by entering into a browser my dailymail address and password the Cron command was still not working. I asked my host for help. Answer is interesting.

'You should not use wget in a cron job. Just use GET, like this'

GET http://oil-tech.com/mailist/dailymail.php?pw=my password 1> /dev/null 2> /dev/null

Result?
It works!

Sean

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Password issue with Cron?
« Reply #3 on: September 21, 2004, 02:01:03 pm »
I'm glad to hear this was resolved!  Indeed, some servers do it differently than others. :)
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting