The first solution can be realized with as new script, but can you specify
more about the second solution. And sample scripts? Thanks

On Tue, Apr 7, 2009 at 11:28 PM, Eno <[email protected]> wrote:

>
> 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