http://qs1969.pair.com?node_id=11139158


in reply to running system commands, and getting return codes/status

Please post a short runnable example of your problem.
Don't post your whole GUI code. Just create a small runnable file that demonstrates this issue.

I don't understand this: "The command gets executed before the message gets displayed in the text widget.". What?

Replies are listed 'Best First'.
Re^2: running system commands, and getting return codes/status
by Anonymous Monk on Nov 27, 2021 at 15:51 UTC

    The program I am working on is 1500L long. This is part of a subroutine that gets called. If I can get this to work, I have another subroutine with the same prob -- it executes a different command. This actually looks like a useful subroutine. (does such a codeblock/subroutine resist on 'monks/CPAN?)

      The program I am working on is ... long.

      Please see Short, Self-Contained, Correct Example for a longer discussion of what a "short runnable example" might look like. It is noted therein that just putting together such an example may clarify the problem enough for you so that you don't need to ask anyone else. Building an SSCCE should probably be considered a part of standard debugging praxis.


      Give a man a fish:  <%-{-{-{-<