It's ok, when I try crontab -u www-data -l I see my crontab modified by my
index.php =) It's great !
But now i Have a problem :D
In my crontab I have : */2 * * * * php5 /var/.../SaveTOR.php
But Its not executed, and I think its because www-data doesn't have permissions
to use "php5".
Any idea for allow www-data to use "php5" ?
Thanks
--- In Dan Weese <> wrote:
>
> On Thu, May 6, 2010 at 1:35 AM, rodriguezromain62 <
> > wrote:
>
> >
> >
> > OK I know the problem, apache user is www-data and this user dont have
> > permissions to do something like crontab.
> >
> > I need to pass www-data to root. I try to change user/group with root:root
> > but when I restart apache, I have an error.
> >
> > How can I do for execute crontab with shell_exec in PHP ???
> >
>
> Huh? crond handles a crontab, not your process. Are you trying to write to
> crontab? That should be simple enough
>
>
> > Thanks
> >
> >
> > --- In <ts-7000%40yahoogroups.com>, Dan Weese
> > <danweese@> wrote:
> > >
> > > On Wed, May 5, 2010 at 6:14 AM, rodriguezromain62 <
> > > rodriguezromain62@> wrote:
> > >
> > > >
> > > >
> > > > Hello everybody, I'm not sure my question could be in this group, so
> > I'm
> > > > sorry if it's not good.
> > > >
> > > > I have a problem and i dont know why its not work :
> > > >
> > > > I use most of php,ajax & JS with my TS7800,
> > > > One time I need to use shell_exec. But it doesnt work. I look for the
> > > > safe_mode and it is disabled.
> > > >
> > >
> > > I use the full exec( $command, $returnArray, $returnVal ) format. Examine
> > > your $returnArray and $returnValue after execution.
> > >
> > > Let me know what you find.
> > >
> > > Y puede contestar en Esp. si prefiere....
> > >
> > > >
> > > > I try to do a simple 'cp' with the cmd shell_exec but it still not work
> > :'(
> > > >
> > > > any idea ?? thanks a lot ( and sorry for my baaaad english again =) )
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|