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";
In reply to parsing rsync output by eddor1614
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |