Displaying 1 result from an estimated 1 matches for "backuptmp".
Did you mean:
backupmx
2007 Mar 08
1
cant fully capture child output
...les in Pickaxe and Ruby PLEAC library ... and I believe the following
should work:
# called from within do_work...
def backup(repo)
logger.info(''SvnWorker backup repo ''+repo)
tmp = []
my_project = DIRS[:project_repos] + "/#{repo}"
dummyfile = ''backuptmp''
temp_file = "#{DIRS[:backups]}/#{dummyfile}"
svn_cmd = "svnadmin dump #{my_project} | gzip -9 > #{temp_file}"
tmp << "piping to tmp"
results[:txt] = tmp
### i dont get the output between here ###
readme, writeme = IO.pipe
pi...