#8 How to setup Exec ExtProgram using progressive output widget

closed
5
2007-07-23
2007-03-03
pds
No

Is it possible to have an example how to setup an Execute External Program using a progressive output widget.

I tried several ways but the only result is having the complete output into a text window after completion of the external program instead of having it progressively while the program is running.

Discussion

  • Damon Courtney

    Damon Courtney - 2007-03-06

    Logged In: YES
    user_id=50387
    Originator: NO

    You need to be sure Show Progressive Output is Yes and that you have specified the name of the Progressive Output Widget. Do you have both of those set, but it's still not working?

     
  • Damon Courtney

    Damon Courtney - 2007-03-06
    • assigned_to: nobody --> damonc
     
  • pds

    pds - 2007-03-07

    Logged In: YES
    user_id=1697795
    Originator: YES

    Indeed, both were set.

     
  • Ben Middleton

    Ben Middleton - 2007-05-29

    Logged In: YES
    user_id=1803719
    Originator: NO

    Hi Damon,

    I am also struggling to get this working. What I have done so far is:

    1) Created a text window widget, with the alias output_widget. The widget doesn't "wait on window".

    2) Created an external script action with "Show progressive output" set to yes, "Progressive Output Widget" set to "output_widget", and "Watch progressive output" set to Yes.

    Should this work? Am I missing a step? Can the progressive output update any other kind of Widget? E.g. the text of a "Custom Text Pane 1"? Any help or examples would be appreciated.

    Thanks.

    Ben

     
  • Damon Courtney

    Damon Courtney - 2007-05-29

    Logged In: YES
    user_id=50387
    Originator: NO

    When you say "created a text window widget," what exactly do you mean? Do you mean that created a Text Window action for progressive output?

    You can definitely use a Custom Text Pane 1 and attach your external program action to that. That pane will have a widget called Text that is the main text box of the pane. That is what you want to use for your Progressive Output Widget.

    I need to look into the situation of using a Text Window action. I'm not exactly sure what the values should be for that.

     
  • Ben Middleton

    Ben Middleton - 2007-05-30

    Logged In: YES
    user_id=1803719
    Originator: NO

    Hi Damon, I was originally trying a Text Window action for progressive output (as documented in the online help). However, I didn't make much progress with that.

    I have managed to get the Custom Text Pane 1 version working OK now. My problem was actually related to the format of the Program Command Line - and as the error that was being thrown wasn't displayed in the Progressive output area - I assumed that this wasn't working for me. It would seem that it needs an absolute path - it won't pickup programs within the PATH. In addition to this - if you use Windows file delimiters (\) - the the system strips these out. If I always use / path delimiters, then the program is correctly located. So... is it possible to search the PATH for programs? And is it possible to convert the path delimiters using a function or somesuch?

    Thanks again.

    Ben

     
  • Ben Middleton

    Ben Middleton - 2007-05-30

    Logged In: YES
    user_id=1803719
    Originator: NO

    OK - Final question on this one. How does the system know when a program has finished running? I currently have 'Wait for program to finish running' set to Yes - however the system doesn't seem to register the fact that it has finished, and hence any subsequent Actions don't get run. Is this related to the STDERR issue perhaps? Or is it related to the progressive output widget code - which is working fine now?

    Thanks again,

    Ben

     
  • Damon Courtney

    Damon Courtney - 2007-05-30

    Logged In: YES
    user_id=50387
    Originator: NO

    InstallJammer knows when the program is done when the process exits. If the process never exits, the installation will never continue. This should be completely independent of any other errors you're having since InstallJammer should always know when the program exits. Is the program exiting but InstallJammer is not seeing it?

     
  • Ben Middleton

    Ben Middleton - 2007-05-31

    Logged In: YES
    user_id=1803719
    Originator: NO

    When run from the command line, the sqlcmd program is exiting back to the command prompt. When run from within InstallJammer, it never sees this exit.

    It seems to be related to the Progressive Output function. If I set 'Show Progressive Output' to No - then the sqlcmd runs correctly and exits as expected. Any ideas?

     
  • Damon Courtney

    Damon Courtney - 2007-07-23
    • status: open --> closed
     

Log in to post a comment.