• # Autre solution

    Posté par (site web personnel, Mastodon) . En réponse au message Est-il possible de modifier les options d'une commande, une fois la commande passée ?. Évalué à 5.

    Même s'il est impossible de modifier la ligne de commande, tu peux envoyer un signal pour demander à rsync d'émettre un rapport. Selon man rsync :

    Finally, you can get an instant progress report by sending rsync a signal of either SIGINFO or SIGVTALRM. On BSD systems, a SIGINFO is generated by typing a Ctrl+T (Linux doesn't currently support a SIGINFO signal). When the client-side process receives one of those signals, it sets a flag to output a single progress report which is output when the current file transfer finishes (so it may take a little time if a big file is being handled when the signal arrives). A filename is output (if needed) followed by the --info=progress2 format of progress info. If you don't know which of the 3 rsync processes is the client process, it's OK to signal all of them (since the non-client processes ignore the signal).

    Je n'ai jamais essayé cependant.

    Un gentil du net