Search found 40 matches

by rj71
Wednesday 12th June 2024 6:55pm
Forum: General
Topic: For loop struggles
Replies: 3
Views: 99

Re: For loop struggles

There seems to be a lot of Bruce's on this website :lol: Thanks to both of you and I'll try both to see what fits best. I'm really grateful for the help I get from the people on this site, I've learned so much!
by rj71
Tuesday 11th June 2024 7:36pm
Forum: General
Topic: For loop struggles
Replies: 3
Views: 99

For loop struggles

Hi All, Despite some years experience with VB and now getting my feet wet with Gambas, I've always struggled with for loops. I don't know why, it just doesn't always click for me. Say I have a listbox with 200 items in it and I want to do something with that data with a button click but only 5 (exac...
by rj71
Monday 27th May 2024 2:06pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 2072

Re: Viewing bash/php scripts in real time

So I tried the code on a really long running script last night. The terminal view at some point stopped scrolling and even looked like it stop responding. I wasn't watching it so I don't know exactly how long the script ran before this happened. Not much I can do about the script, its just something...
by rj71
Sunday 26th May 2024 4:48pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 2072

Re: Viewing bash/php scripts in real time

I'll play with terminal view and see if that works. Thanks Bruce! Hey Bruce, I like the terminalview and have made some changes to my back end scripts to make this work. Just one small problem: with longer running scripts, the terminalview eventually stops scrolling down and I can't tell if the scr...
by rj71
Saturday 25th May 2024 10:14pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 2072

Re: Viewing bash/php scripts in real time

Ah, I see the .ensurevisible now. Sweet!
by rj71
Saturday 25th May 2024 10:10pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 2072

Re: Viewing bash/php scripts in real time

Another option could be to use a TerminalView not a TextArea you could then just run the script in the terminalview and see the normal terminal output. Dim p as Process p = TerminalView1.Shell("my/command") While p.state = Process.Running Wait 0.1 Wend I'll play with terminal view and see...
by rj71
Saturday 25th May 2024 3:21pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 2072

Re: Viewing bash/php scripts in real time

Another option could be to use a TerminalView not a TextArea you could then just run the script in the terminalview and see the normal terminal output. Dim p as Process p = TerminalView1.Shell("my/command") While p.state = Process.Running Wait 0.1 Wend I'll play with terminal view and see...
by rj71
Friday 24th May 2024 10:42pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 2072

Re: Viewing bash/php scripts in real time

Oops sorry use Input not Output hProc = Shell "/path/to/bash_script" For Input As "PROC" :lol: no prob. works now. Another question though...how much data can be input into a textarea component? In some of my tests, there appears to be a clear limit as it ends up crashing the ap...
by rj71
Friday 24th May 2024 8:58pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 2072

Re: Viewing bash/php scripts in real time

Oops sorry use Input not Output hProc = Shell "/path/to/bash_script" For Input As "PROC" :lol: no prob. works now. Another question though...how much data can be input into a textarea component? In some of my tests, there appears to be a clear limit as it ends up crashing the ap...
by rj71
Friday 24th May 2024 8:37pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 2072

Re: Viewing bash/php scripts in real time

Okay Private hProc As Process Public Sub RunScript() hProc = Shell "/path/to/bash_script" For Output As "PROC" End Public Sub PROC_Read() Dim sOutput As String sOutput = Read #Last, Lof(Last) TextArea1.Insert(sOutput) TextArea1.EnsureVisible End This is strange. I tried your new...