Hi,
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].
Is there anything I need to add to the command in order for shell to output the progress?
Thanks!
Ingo
On Tue, 2022-02-15 at 18:56 +0100, Ingo wrote:
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
[command] works great!
Now I can display the progress of the dd disk copy while showing the current MB / GB copied and percantage of the progress on my LCD display. With large and slow drives it's great to see that something is happening and how long it will probably take when no regular screen is connected.
Thanks again for pointing me to the [command] external, Roman!
Ingo