Re: exec dont work for svn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 30, 2007 4:30 pm, Manolet Gmail wrote:
> 2007/5/30, Richard Lynch <ceo@xxxxxxxxx>:
>>
>>
>> On Tue, May 29, 2007 10:44 am, Manolet Gmail wrote:
>> > 2007/5/28, Greg Donald <gdonald@xxxxxxxxx>:
>> >> On 5/28/07, Manolet Gmail <manolet@xxxxxxxxx> wrote:
>> >> > but this doesnt work:
>> >> >
>> >> > exec("svn update",$out);
>>
>> exec("svn update", $out, $error);
>> if ($error) echo "OS Error: $error.  Use perror $error in shell to
>> get
>> message";
>
> give me error 1:
>   OS error code   1:  Operation not permitted
>
> also, the checkout was did by other user.  but i do chmod -R 777 * as
> root.
>
> so what i can do ?

[shudder]  Having a bunch of root owned files set to 777 is definitely
the wrong way to go...  Think about it for awhile.

As far as the OS Error goes, we don't even know exactly what is wrong
here...

Maybe the PHP user can't run svn

maybe the PHP user can run svn, but can't alter the hidden .svn files
that you probably didn't chmod.

Maybe...

I'd suggest doing an 'su' to the PHP User and trying to do svn update
on the command line, before you put PHP into the mix.

You also should use a full path to 'svn' and you need to be in the
right directory before you do 'svn', so I'd put a 'cd /whatever; svn
up' instead.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux