[Gambas-user] gambas3 --system-information in a gambas program

Bruce Steers bsteers4 at gmail.com
Sun May 22 00:30:24 CEST 2022


works as expected in a terminal.

in a gambas prog i get nothing, using gambas dev branch and linuxmint ,
tried mate and cinamon,
nada.

BruceS

On Sat, 21 May 2022 at 22:36, Jussi Lahtinen <jussi.lahtinen at gmail.com>
wrote:

> Weird, it does work here. What happens if you open terminal and input
> "gambas3 --system-information"?
>
> Jussi
>
> On Sun, May 22, 2022 at 12:24 AM Bruce Steers <bsteers4 at gmail.com> wrote:
>
>>
>> If i use this code...
>>
>> Public Sub Button1_Click()
>>
>>   Dim sVar As String
>>   Shell "gambas3 --system-information" Wait To sVar
>>   Print sVar
>>   File.Save(User.Home &/ "gambas-info.txt", sVar)
>>
>> End
>>
>> It prints nothing and saves nothing to a file?
>>
>> i tried using Exec [] and even shell "echo $(gambas3
>> --system-information)"
>> also tried 2>&1 suffix.
>>
>> just can't seem to get it to work :-\
>> any idea why?
>>
>> Cheers
>> BruceS
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220521/512689ea/attachment.htm>


More information about the User mailing list