P
P
polzovatel_vue2019-12-17 12:51:41
linux
polzovatel_vue, 2019-12-17 12:51:41

How to get rsync progress using proc_open?

Good afternoon. Trying to catch rsync progress when executing php command "proc_open"

$query = "rsync --bwlimit=20000 --delete --chmod=ugo=rwX --modify-window=5 -rlpgoD --contimeout=3600 '$client_root/$src' --exclude=*/en_us/client/sandbox --info=progress2 --no-i-r --exclude=*/en_us/server/sandbox  $host::drive_$drive_letter/$path";
    $descriptors = array(
        0 => array("pipe", "r"),
    );
    $proc = proc_open($query, $descriptors, $pipes);
    $exitCode = proc_close($proc);

It gives progress on the output, but I can’t catch it in order to withdraw
5df8a51185636424750262.png
Tell me how to catch it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question