Welcome Guest, Not a member yet? Register   Sign In
Real-time output through CLI
#1

[eluser]Unknown[/eluser]
I'm building a background cron script to handle some slow processing, and using codeigniter to handle the database lifting etc.

However, it seems when I run the scripts it waits until the entire script has run before it outputs any text (even using echo statements).

I was hoping to get a more real-time output to make debugging slightly less painful - is this a simple switch I can run?
#2

[eluser]WanWizard[/eluser]
Normal CI output is buffered, so you can't use that in a cron situation.

Search for cron here, there are libraries available (from p.e. Phil) that work around this issue.




Theme © iAndrew 2016 - Forum software by © MyBB