Help replacing os.system call with subprocess call

D

David Pratt

Hi. I am trying to replace a system call with a subprocess call. I have
tried subprocess.Popen 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('svnadmin dump %s > %s' % (svn_dir,
os.path.join(backup_dir, 'svndump.db')))

Many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top