eddor1614 has asked for the wisdom of the Perl Monks concerning the following question:
hello.
i need to make an HTML with the progress output of a rsync command.
i'm doing this:
but the problem is that the progress update sends \r and the loop doesn't see the line until it finish the transfer and sends a \n. i try:open (CORE, "/usr/bin/rsync $rsyncOPT --progress $outbox $inbox |"); while (<CORE>) { # code }
but on small files never sends a \r because the transfer finish quickly. i need to have two $/. any ideas?local $/="\r";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: parsing rsync output
by gamache (Friar) on Nov 21, 2007 at 14:21 UTC | |
by eddor1614 (Beadle) on Nov 21, 2007 at 14:30 UTC | |
Re: parsing rsync output
by jasonk (Parson) on Nov 22, 2007 at 02:51 UTC | |
by Anonymous Monk on Nov 22, 2007 at 18:13 UTC |
Back to
Seekers of Perl Wisdom