Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Under Consideration
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Jul 24, 2019

Make new Lotus Script function "ShellAndWait"

The existing shell functions only call the external target but do not wait for its ending. It runs asynchronous.

Therefore it would be great if there was an additional Script function which wait for the called program to end.

 

Mark Reiser, sirius-net GmbH

  • Attach files
  • Guest
    Reply
    |
    May 21, 2020

    Why not just use Java? Because using Java on the Notes Client is not a good idea.

  • Guest
    Reply
    |
    Aug 28, 2019

    Why not just use Java? This way you also can get the output of the called process and check its error state.

  • Guest
    Reply
    |
    Jul 30, 2019

    Hi,

    thank you very much for this workaround. It works perfect!

    The problem was that my former workaround, using the functions CreateProcessA and WaitForSingleObject, unfortunately ain´t working anymore under Domino V10.

    However, I´d wisth that there was a native Domino function for this.

    Best regards
    Mark Reiser, sirius-net GmbH

  • Guest
    Reply
    |
    Jul 25, 2019

    Hi there,

    Was dealing with this problem just yesterday. Take a look at my workaround. Works under Windows.

     

    Declare Function GetProcessVersion Lib "kernel32" (ByVal ProcessID As Long ) As Long

    Private Function WIN32_isProcessRunning( id As Long ) As Boolean
            WIN32_isProcessRunning = Not ( 0 = GetProcessVersion( id ) )
    End Function

     

    Usage:

    Dim processId As Long
    processId = Shellid( {myfile.bat}, 6 )

    Do While WIN32_isProcessRunning( processId )
            Yield
            Sleep 1
    Loop