Search found 38 matches

by rj71
Monday 27th May 2024 2:06pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 1179

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: 1179

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: 1179

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: 1179

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: 1179

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: 1179

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: 1179

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: 1179

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...
by rj71
Friday 24th May 2024 8:16pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 1179

Re: Viewing bash/php scripts in real time

I just found some of Bruce's examples in another thread. I'm going to check those out now.
by rj71
Friday 24th May 2024 8:11pm
Forum: General
Topic: Viewing bash/php scripts in real time
Replies: 16
Views: 1179

Re: Viewing bash/php scripts in real time

Hi All, I have a project that I've been working for awhile that consists of a main bash script that does several things in order including calling a few php scripts (database stuff) and a few Linux commands (find and comm) and then the script ends and I have a nice chunk of data to either ignore or...