Help replacing os.system call with subprocess call

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Pratt

    Help replacing os.system call with subprocess call

    Hi. I am trying to replace a system call with a subprocess call. I have
    tried subprocess.Pope n and subprocess.call with but have not been
    successful. The command line would be:

    svnadmin dump /my/repository svndump.db

    This is what I am using currently:

    os.system('svna dmin dump %s %s' % (svn_dir,
    os.path.join(ba ckup_dir, 'svndump.db')))

    Many thanks.
Working...