[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


> -----Original Message-----
> From: Ingo [mailto:[email protected]]
> Sent: Tuesday, February 15, 2022 7:36 PM
> To: 'Roman Haefeli'
> Subject: RE: [PD] How to monitor a "dd" disk copy progress in Pd
>
> Thanks, Roman!
>
> I'll give it a try. Both with [shell] by appending ' 2>&1' and [commnd].
>
> Ingo
>
>
> > -----Original Message-----
> > From: Pd-list [mailto:[email protected]] On Behalf Of Roman
> > Haefeli
> > Sent: Tuesday, February 15, 2022 7:23 PM
> > To: [email protected]
> > Subject: Re: [PD] How to monitor a "dd" disk copy progress in Pd
> >
> >
> > 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





_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to