- omgwtfnoway
- Aug 22, 2004
-
Uhhh.... little help here, please?
|
I'm trying to use exec() in a php script to add and commit some files to SVN.
I'm doing something like:
code:$cmd = "cd c:\pathWithSVN";
exec($cmd);
$cmd = "svn add $abaFilename";
exec($cmd);
I had to cd into that path first - or else any SVN commands won't execute.
Then to commit - I do something like:
code:$cmd = "cd c:\pathWithSVN";
exec($cmd);
$cmd = "svn commit -m \"Updates yadda yadda\"";
exec($cmd);
The problem is: neither of these commands are being run. Any ideas? I've never tried executing command line commands from a script before. This is run on a windows machine with apache/php5.
|
#
¿
Apr 3, 2008 00:52
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
May 8, 2024 14:26
|
|
- omgwtfnoway
- Aug 22, 2004
-
Uhhh.... little help here, please?
|
This is what I ended up doing. Seems to work pretty well.
Thanks for the help.
|
#
¿
Apr 3, 2008 04:22
|
|