• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cronjob to execute a directaction page ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cronjob to execute a directaction page ?


  • Subject: Re: cronjob to execute a directaction page ?
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 22 Sep 2004 19:14:13 -0700

Does the DA run when you curl it? Is it looking for a header that is not sent with curl? Is is throwing an exception? I've done the curl thing before, it works well. I'd think the problem lies in the code in your direct action rather than how the DA is invoked.

Chuck


On Sep 22, 2004, at 6:55 PM, Goh Keng Boon wrote:

Thank Mike, I'm able to use curl to access that DirectAction page, i got the proper return, but still, DB is not updated.
If I run that URL in web browser, the DB is updated, anyone faced such problem before?


Thanks.

KB


On 23-Sep-04, at 9:36 AM, Michael Engelhart wrote:

Use the command line tool "curl'

curl --help

try typing as an example of calling a Direct Action:
curl http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore? family=iPod


I'm not sure why you db isn't getting updated though. That sounds like it's something in your DirectAction


Mike On Sep 22, 2004, at 8:32 PM, Goh Keng Boon wrote:

Hi, I got this directaction page where i use to syn my databases, I'm planning to use a cronjob to schedule the thing, but
how can i "execute" that directaction page?


I tried a lame method where i have a java class to do url connect to that directaction page, and execute the java class using
cronjob, i'm able to get back the proper http return, but the database not updated at all.


Is there any proper way that i can do this?

Thanks.

Regards,
Keng Boon

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >cronjob to execute a directaction page ? (From: Goh Keng Boon <email@hidden>)
 >Re: cronjob to execute a directaction page ? (From: Michael Engelhart <email@hidden>)
 >Re: cronjob to execute a directaction page ? (From: Goh Keng Boon <email@hidden>)

  • Prev by Date: Re: cronjob to execute a directaction page ?
  • Next by Date: Re: cronjob to execute a directaction page ? (SOLVED)
  • Previous by thread: Re: cronjob to execute a directaction page ?
  • Next by thread: Re: cronjob to execute a directaction page ? (SOLVED)
  • Index(es):
    • Date
    • Thread