[Gambas-user] Control GUI (Qt5) Gambas program via Standard Input
T Lee Davidson
t.lee.davidson at gmail.com
Tue Feb 14 05:49:31 CET 2023
On 2/13/23 20:59, Bruce Steers wrote:
> I just quickly made this simple terminal application i call 1Space.gambas ....
> it converts text to only have one space between words.
> ------------------------------------------
[snip]
> ---------------------------------
>
> I can use...
>
> 1Space.gambas "Test tooo many spaces"
>
> and also
>
> echo "Test tooo many spaces" | 1Space.gambas
>
> Cool , I did not know how to do that till i read this thread :)
> Cheers
>
> Respects
> BruceS
>
So, Application_Read fires if stdin is via a pipe but not if it is via stdin of the process' file descriptor?
@BruceS, to answer your question from another message, James is using redirection to send the data to stdin, eg.:
echo "hello" > /proc/$(pgrep -f std-in-test)/fd/0
--
Lee
More information about the User
mailing list