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
signature.asc
Description: This is a digitally signed message part
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
