Re: Formatting rsync output

2004-07-18 Thread Ashley M. Kirchner
Jim Salter wrote: Use a perl script to fire off rsync. If you need to output the rsync data as it comes in, you can use the "open" command: Thanks. The script is written in Bash though, but this gives me a starting point. -- W | I haven't lost my mind; it's backed up on tape somewhere. +--

Re: Formatting rsync output

2004-07-18 Thread Jim Salter
Use a perl script to fire off rsync. If you need to output the rsync data as it comes in, you can use the "open" command: open FH, "/usr/bin/rsync -avz /foo bar::baz 2>&1 |"; foreach () { ### data parsing occurs here } Or if you don't mind waiting to parse the rsync output until rsync is com