Re: exec dont work for svn
| From: | Manolet Gmail | Date: | Tue, 29 May 2007 20:29:38 +0000 |
| Subject: | Re: exec dont work for svn | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255769@lists.php.net to get a copy of this message | ||
Hi, thanks petter, now im getting this error...
svn: Can't check path '/root/.svn': Permission denied
using this:
$cmd = "svn up";
$cmd .= " --username $user --password $pass --non-interactive --revision $rev";
$cmd .= " --no-auth-cache --config-dir ~/.svn/ 2>&1";
i try with --config-dir /tmp/ with $_SERVER['document_root'] but
always return me the same error, any idea?
2007/5/29, Peter Lauri <lists@dwsasia.com>:
Hi, In many apps the messages comes as STDERR, so try: exec("svn update 2>&1", $out); Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -----Original Message----- From: Manolet Gmail [mailto:manolet@gmail.com] Sent: Tuesday, May 29, 2007 5:45 PM To: PHP List Subject: [PHP] exec dont work for svn 2007/5/28, Greg Donald <gdonald@gmail.com>:On 5/28/07, Manolet Gmail <manolet@gmail.com> wrote:well, i have error reporting (E ALL) and dont give me any error, also i try with svn update --non-interactive --username user --password pass and again... nothing appears. Also if the svn update ask for a password why php dont show it?, or why i dont receive a maximum ececution time of script error?. the script run instantly btw,..but this doesnt work: exec("svn update",$out); foreach($out as $line)echo"<br/>$line\n"; dont print anything... dont update the filesIs it possible you need to provide some type of authentication? `svn update` may be asking for input your exec call isn't providing.-- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php