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

Re: [Condor-users] condor_submit and suppressing program popups


You may be able to use a Windows Scripting Host (WSH) script to close the
final pop-up.  An easy way to do this is to have the script send keystrokes
to the application:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "myapplication.exe", 9, true ' wait for the application to
WshShell.SendKeys "%o" ' Send Alt + o to simulate clicking the OK button

If the wait fails because of the dialog, then try using the sleep function
in combination with the find window functionality to pool for the existence
of the final dialog box.  Once you find it, send the keystrokes or a close
window message.


From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Michael O'Donnell
Sent: Thursday, June 04, 2009 9:50 AM
To: condor-users@xxxxxxxxxxx
Subject: [Condor-users] condor_submit and suppressing program popups

I am running Condor in a Windos 32 bit environment with about 6 machines
added to the pool and one host (testing phase). 

I have a program that apparently was developed in fortran and then compiled
for a windows 32bit system. The program will run by passing a file input,
but at the completion of the program the following popup occurs: "Program
terminated with exit code 0". This code is generally an indication that a
program ran successfully. Based on what I found online, this is an artifact
of the compiler. 

The problem: condor_submit will run the program but then then job never
finishes, which I believe it is related to this popup. The GUI is suppressed
on the individual machines by condor, all data is created and the CPU drops
down to 0. The host reports that the job is still running and therefore, the
data is not returned and the machine is tied up. 

Question: Is there a way to suppress or bypass this popup via the submit

Thanks for the help and suggestions,