Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 832509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:22:24+00:00 2026-05-15T04:22:24+00:00

I have two scripts. running an update and calling shell_exec(‘svn update’) and shell_exec(‘svn st’)

  • 0

I have two scripts.

  1. running an update and calling shell_exec(‘svn update’) and shell_exec(‘svn st’)
  2. running a mysqldump shell_exec(‘mysqldump params’)

The svn script is not running the update command, the svn st is printing results but not the svn update

I tried to declare parameters when calling svn update eg
‘svn update ‘ . dir . ‘ –username myuser –password mypasswd –non-interactive’;
— still nothing
Played with most of the params

If this is something related to binaries/permissions/groups, I don’t see it.
The mysqldump command works fine and is producing a file, so why isn’t the svn updating the filesystem?

Please do not advise using core SVN classes in PHP. This is not an option, I don’t have complete control over the server and the module is not available.

Thanks for your help,

-hbt

PS: important thing to mention here. The scripts works when called via the command line. It only fails when called via a web browser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:22:24+00:00Added an answer on May 15, 2026 at 4:22 am

    OK. I got it.
    It is an issue with permissions. The .svn directory must have the right permissions because the svn update command is using those directories to write stuff.

    So!
    —Make sure you run all chmod commands as sudo or root—-

    1. run a chmod 777 on .svn directory
    2. run an svn update via command line
    3. call script

    If nothing. You must run chmod 777 recursively for all .svn directories then run another svn update

    Still nothing?

    Make sure you don’t have two svn clients
    In my case, the svn client used by the UI is different from the svn (command line)
    If you have two clients, make sure they are running the same version
    Or update your script to call the client directly.

    Still nothing?

    Run a chmod 777 -R *
    svn update
    and try again

    If you can make it work with another set of permissions, please let me know. I know that 777 is not ideal, but I can’t make it work with something lower.

    Thanks again guys.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 491k
  • Answers 491k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If it always returns in px format, "100px", "50px" etc… May 16, 2026 at 10:14 am
  • Editorial Team
    Editorial Team added an answer Well, no suggestions. I did it eventually by, in the… May 16, 2026 at 10:14 am
  • Editorial Team
    Editorial Team added an answer Iin the cases you describe, the form actually gets posted,… May 16, 2026 at 10:14 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

We have two zope servers running our company's internal site. One is the live
For a recent project, I have a PHP script running as a CLI-based daemon.
UPDATE: this is a repost of How to make shell scripts robust to source
I have a maintenance script in PHP that updates and repairs the database. In
I have two tables - let's call them dbo.ValuesToReduce and dbo.Reserve The data in
I have two tables that I want to join into one table and use
This is tricky.. I have two sites. Site A and site B. On another
I have designed a long form around two pages. After the user submits the
I have a problem with a form. I need it to perform two actions
Our application has a couple of shell scripts that are called from web-based Oracle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.