Welcome Guest, Not a member yet? Register   Sign In
Using CI to create a command line app?
#5

[eluser]champs[/eluser]
Here's how I do it:
Code:
run /controller/method/data

... of course that's with a batch file called RUN.BAT. It's a really complicated piece of work... Wink
Code:
SET QUERY_STRING=%1
"C:\php-5.2.3\php.exe" ".\www\index.php"

Adapt as needed for (ba/tc/z)sh with EXPORT, et al.

With CI's default settings, that argument will become the URI string used for routing. It doesn't handle postdata, obviously... but since when are cron jobs user-interactive?


Messages In This Thread
Using CI to create a command line app? - by El Forum - 09-07-2007, 09:33 AM
Using CI to create a command line app? - by El Forum - 09-07-2007, 12:25 PM
Using CI to create a command line app? - by El Forum - 09-07-2007, 12:53 PM
Using CI to create a command line app? - by El Forum - 09-07-2007, 02:20 PM
Using CI to create a command line app? - by El Forum - 09-07-2007, 06:34 PM
Using CI to create a command line app? - by El Forum - 09-07-2007, 08:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB