[Gambas-user] How to capture /dev/null to a string ?
Bruce Steers
bsteers4 at gmail.com
Sat Mar 20 11:51:25 CET 2021
not sure you can.
you would not use >/dev/null and capture the output.
I believe ffmpeg uses stderr to output some info
So try it with ">2&1"
Dim myString As String
Shell "ffmpeg -i audo.mp3 -af \"volumedetect\" -f null /dev/null 2>&1" To
myString
that redirects stderr to stdout and sends any output text to the myString
variable
BruceS
On Sat, 20 Mar 2021 at 05:46, Vinode Singh Ujlain <ujlain at gmail.com> wrote:
> How do I capture the output of this command line (using shell/exec) to a
> string for further REGEX parsing ?
> ffmpeg -i audo.mp3 -af "volumedetect" -f null /dev/null
>
> Warm Regards - UZI
> ------------------------------
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210320/b3a754d9/attachment.htm>
More information about the User
mailing list