Bakul's answer is best... starting the shell, the shell pipeline, etc. is
not free in execution time and memory use. The "do it all in dmtxwrite by
sending input" is the fastest, lightest way of doing what you want.

On Mon, Jun 22, 2020 at 9:21 AM Franco Marchesini <
franco.marches...@gmail.com> wrote:

> Ciao,
>
> I had read this tutorial, but  my mistake was not having called the shell
> command
>
> Il giorno lunedì 22 giugno 2020 18:01:04 UTC+2, Michael Jones ha scritto:
>>
>> https://tutorialedge.net/golang/executing-system-commands-with-golang/
>>
>> On Mon, Jun 22, 2020 at 8:54 AM Franco Marchesini <franco.m...@gmail.com>
>> wrote:
>>
>>> Help,
>>>
>>> how I can translate this shell command :
>>>
>>> echo -n 123456 | dmtxwrite -s 16x48  -o image.png
>>>
>>> to golang
>>>
>>>  exec.Commad()
>>>
>>> Thanks in advance
>>> Franco
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "golang-nuts" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to golan...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/golang-nuts/c6aaba94-453b-41dc-83a4-ffd4f3912494o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/golang-nuts/c6aaba94-453b-41dc-83a4-ffd4f3912494o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>>
>> *Michael T. jonesmichae...@gmail.com*
>>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/e84a97ec-d326-4ccc-8e31-bf25991ec897o%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/e84a97ec-d326-4ccc-8e31-bf25991ec897o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 

*Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>*

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CALoEmQxrE34J%2B4WDMwgsVJvEp_oMRfLK8tDO-o3GHCeRJxvfjw%40mail.gmail.com.

Reply via email to