Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on Trouble running a Cron job in the Shared & Semi-Dedicated forum
I have following instructions to run a cron job: Code: */5 * * * * TERM=xterm;export TERM;lynx -dump -useragent=MailBag "http://www.mysite.com/index.php?module=MailBag&type=admin&func=run&exepw=mypw" > /dev/null Of course that ...

  1. #1
    JPC Senior Member
    Join Date
    Nov 2002
    Posts
    61

    Trouble running a Cron job

    I have following instructions to run a cron job:
    Code:
    */5 * * * * TERM=xterm;export TERM;lynx -dump -useragent=MailBag "http://www.mysite.com/index.php?module=MailBag&type=admin&func=run&exepw=mypw" > /dev/null
    Of course that didn't work. Then I tried following, but still without any result:

    Code:
    GET http://www.mysite.com/index.php?module=MailBag&type=admin&func=run&exepw=mypw > /dev/null
    From the various threads I got the idea that using the GET is enough, and it works fine with a script that does not take parameters.

    Maybe there is some trouble in passing the parameters?

  2. #2
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Try this with GET command

    Code:
    GET "http://www.mysite.com/index.php?module=MailBag&type=admin&func=run&exepw=mypw" > /dev/null
    Without quotes shell may not be able to interpret it as one single argument.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  3. #3
    JPC Senior Member
    Join Date
    Nov 2002
    Posts
    61
    Thank you!
    It works now. The trouble was that in CP I could not enter double quotes, it just ignored those.
    But using single quotes worked as well. Now I got our mailing list messages automatically extracted on the web page.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •