diff options
Diffstat (limited to 'rdiff-backup/testing/chdir-wrapper2')
-rwxr-xr-x | rdiff-backup/testing/chdir-wrapper2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rdiff-backup/testing/chdir-wrapper2 b/rdiff-backup/testing/chdir-wrapper2 new file mode 100755 index 0000000..7fc1312 --- /dev/null +++ b/rdiff-backup/testing/chdir-wrapper2 @@ -0,0 +1,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/python/rdiff-backup/rdiff-backup --server") + |