On Tue, 7 Apr 2009, xhe wrote:

> Don't know if you have ever met this issue.
> I want to run sym1.2 task from cron cli environemnt, in windows, I
> will use
> 
> php symfony clearActiveUsers
> 
> But in linux cron, how can we write it? I used this:
> php /path/to/symfony clearActiveUsers, but whenever I run it out of
> symfony directory, I got error:
> 
> Task "clearActiveUsers" is not defined.
> 
> This can be run under symfony directory, but in cron, how can I set it
> up?

Wrap it up into a shell script that changes to the symfony folder before 
running the command-line.

Another option is to wrap the command-line with parentheses with the cd 
command preceding the php command. The parentheses tell the shell to run 
the command-line in the same shell.


-- 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to