[PD] How to monitor a "dd" disk copy progress in Pd

Roman Haefeli reduzent at gmail.com
Tue Feb 15 19:23:29 CET 2022


On Tue, 2022-02-15 at 18:56 +0100, Ingo wrote:
>  
> I'm trying to monitor the progress of a "dd" disk copy operaton in
> Pd. I'm on Debaian.
>  
> When I send this to a console I can see the progress in the console
> (after the command):
> dd if=/dev/sdb of=/dev/sdc status=progress
>  
> However, if I try to do the same thing within PD and send the same
> command to [shell] I get no output from s{shell].

The status output of dd is sent to stderr and [shell] only outputs the
stdout of the command. 
 
> Is there anything I need to add to the command in order for shell to
> output the progress?

You could redirect stderr to stdout by appending ' 2>&1' to your shell
command.

Or you could use [command] from Deken that has a separate outlet for
stderr. Contrary to [shell], [command] is actively maintained, has more
features and more fine grained control over the commands it executes.
It is meant as a replacement for [shell], [popen], [system] and co that
are all not actively maintained anymore and lack features.

Roman 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20220215/93e9e824/attachment.sig>


More information about the Pd-list mailing list