summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/chdir-wrapper2
blob: 1a4a2837e874dfc8b8be03bf6e085677b301a1b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

"""Used to emulate a remote connection by changing directories.

Like chdir-wrapper, but this time run the 'rdiff-backup' script, not
some other special thing.

"""

import os, sys

if len(sys.argv) > 1: os.chdir(sys.argv[1])
#PipeConnection(sys.stdin, sys.stdout).Server()

os.system("/home/ben/prog/rdiff-backup/rdiff-backup --server")