B4J Question [Solved!] jShell: Set Global Variable As Console Output?

LWGShane

Well-Known Member
Licensed User
Longtime User
I'm creating a library that allows for easier execution of Shell commands. One of its functions is to output StdOut and StdErr to a String variable called Output. I can apply the StdOut and StdError to Output and successfully log it in the "_ProcessCompleted" event, but when I go to log Output in another event, Output is empty.

I have got it to where it successfully executes a command, but..... How I set a Process_Globals variable to capture the Shell output?
 
Last edited:
Figured it out! I'm writing the output to a file in DirTemp, and then copying the file to the ColdBlueLava folder inside the DirTemp. My Library has a host of other useful functions too. (FormOperaitons, FileHelper, OS_Operations, and Process.)

Some are clones of Xojo commands that I find easier than the B4X counterparts.
 
Upvote 0

Similar Threads

  • Article Article
B4J Code Snippet Run B4J console app
Replies
10
Views
3K
  • Question Question
B4J Question jShell error
Replies
2
Views
3K
  • Question Question
B4J Question jShell Question
Replies
1
Views
2K
Back
Top