Does anyone know what includes I would need in order to call PN functions (including Modules) from a CRON-able command...?
I am wanting to build a module that does something every quarter of an hour to the database, but I don't know what to include or if there is a PN Command Line Interface that I am unaware of...
Help me if you can...
--
With the advent of modern technology, sites like Twitter, and the Facebook Virus...
I think we should all breathe a collective sigh of relief that I got here in time...
- randomblink
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 10:33 PM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
How do YOU use CRON to run PN API Functions...?
-
- Rank: Developer
- Registered: Feb 24, 2003
- Last visit: Nov 12, 2009
- Posts: 254
-
- Rank: Team Member
- Registered: Jan 02, 2003
- Last visit: Oct 21, 2009
- Posts: 800
Code
include 'includes/pnAPI.php';
pnInit();
is enough to use pnAPI commands and everything else, you might need to adjust the path depending on where your script is stored.
See this file as example for cron job started scripts.
Frank
--
"He is not dangerous, he just wants to play...." -
- Rank: Developer
- Registered: Feb 24, 2003
- Last visit: Nov 12, 2009
- Posts: 254
You are a god...
Thank you, thank you, thank you...
--
With the advent of modern technology, sites like Twitter, and the Facebook Virus...
I think we should all breathe a collective sigh of relief that I got here in time...
- randomblink -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
I also said the same thing in your other topic... please don't cross post.
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
- Rank: Team Member
- Registered: Jan 02, 2003
- Last visit: Oct 21, 2009
- Posts: 800
You said I am a god???? I cannot remember about this...
--
"He is not dangerous, he just wants to play...." -
- Rank: Developer
- Registered: Feb 24, 2003
- Last visit: Nov 12, 2009
- Posts: 254
Hammerhead: Click Here
--
With the advent of modern technology, sites like Twitter, and the Facebook Virus...
I think we should all breathe a collective sigh of relief that I got here in time...
- randomblink
- Moderated by:
- Support
