octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60180] Command line startup on Windows does n


From: Holger Zeinert
Subject: [Octave-bug-tracker] [bug #60180] Command line startup on Windows does not wait for completion
Date: Sat, 6 Mar 2021 07:13:57 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60180>

                 Summary: Command line startup on Windows does not wait for
completion
                 Project: GNU Octave
            Submitted by: hze
            Submitted on: Sat 06 Mar 2021 12:13:54 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hi,

when trying to embed an Octave call in another script or in another process,
it is important that you can wait until Octave has finished.

With the WSCRIPT vbs start command on Windows, currently neither the GUI nor
the NOGUI option waits until Octave has finished.
So, WSCRIPT will end immediately after Octave is started in the background.
There is no way for the caller to decide to wait.

This can be changed in the startup script 

C:\Program Files\GNU Octave\Octave-6.2.0\octave.vbs

by adding ", TRUE" to both wshShell.Run commands:


' start octave-gui, either with console shown or hidden
If GUI_MODE = 1 then
  AllArgs = AllArgs & " " & chr(34) & "--gui" & chr(34)
  wshShell.Run chr(34) & OctavePath & "\bin\octave-gui.exe" & Chr(34) &
AllArgs, 0, TRUE
Else
  wshShell.Run chr(34) & OctavePath & "\bin\octave-gui.exe" & Chr(34) &
AllArgs, 1, TRUE
End If


It would be great if you can add this (or explain a different way to achieve
waiting in the caller process).

Thanks
Holger




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60180>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]