How to know when the process to be killed
I want to run 4 .exe programs under win98 in sequence, how should i know when does the .exe program end?
If you ran the .exe file using the Process class, there is a method called waitFor() which
will cause the current thread to wait for the process to finish
eg
public void execute() {
Runtime runtime = System.getRuntime();
System.out.println("Start minesweeper");
Process process = runtime.exec("winmine.exe");
process.waitFor();
System.out.println("Finished");
}
Similar Messages
-
The documentation at http://dev.day.com/docs/en/cq/current/deploying/upgrading.html under "STANDALONE (QUICKSTART) UPGRADE" step 3 says that the upgrade process "might take a few minutes". How do we know when the system has been started successfully? When monitoring the error.log file, it looks like that after a while (~20 minutes) an upgrade of the workflow models is started (even though step 4 says that workflow models will be upgraded after a restart). Might there be any problems with stopping the server to soon?
So, to summarize: how do we know when the server has been started successfully?
Thanks
JoakimIn the error.log you would see message like "Finished upgrading". Alternatively you would see 5 completed task in crx explorer at location /var/upgrade/status
-
How to know when the PRICE AFTER DISCOUNT changed and get the value
Hi,
Everything I do to see if a value changed in the grid works except for PRICE AFTER DISCOUNT
which seems to be inaccessible.
Any idea how to know when exactly this value changed and do actions accordinly ?
Also I always get 0.00 if I try to get the value of it
This works to get in the condition of a vlaue changing but I always get 0.00 as the value of the column
if (pVal.ItemUID == "38" && pVal.ColUID == COL_DISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
try
SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_DISCOUNT).Cells.Item(pVal.Row).Specific;
SBO_Application.MessageBox("Discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
catch (Exception ex)
SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
And this do not even get into the condition even tought I SEE the column PRICE AFTER DISCOUNT:
if (pVal.ItemUID == "38" && pVal.ColUID == COL_PRICEAFTERDISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
try
SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_PRICEAFTERDISCOUNT).Cells.Item(pVal.Row).Specific;
SBO_Application.MessageBox("Price after discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
catch (Exception ex)
SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");just idea, maybe it will works
Create one udf in row level and set there FS based on changes on price after discount and fill value what is in price after discount. Then the validation make on this field instead of standard SAP field. -
How to know when the JComboBox popup is about to show or hide?
Hi all,
In JDK 1.4, a new addPopupMenuListener() was added to the JComboBox component. I found out I have to use JDK 1.3, but I already wrote a lot of code around this particular capability. I am trying to figure out how to duplicate it in JDK 1.3. I need to know BEFORE and AFTER the popup is displayed. OR, is there a way with JDK 1.3 that as soon as they click the combo box, it fires an event. The thing is, as soon as they click it, I want to change the background color. When they are done selecting, I can use an ActionListener or ItemListener to find out what was selected and change the color again. My killer is trying to figure out how to know when they have selected the box. I tried adding MouseListener, PropertyChangeListener, AncestorListener. None are doing a thing when the JComboBox is first selected.
Any help would be much appreciated.
Thank you.Hi all,
In JDK 1.4, a new addPopupMenuListener() was added to the JComboBox component. I found out I have to use JDK 1.3, but I already wrote a lot of code around this particular capability. I am trying to figure out how to duplicate it in JDK 1.3. I need to know BEFORE and AFTER the popup is displayed. OR, is there a way with JDK 1.3 that as soon as they click the combo box, it fires an event. The thing is, as soon as they click it, I want to change the background color. When they are done selecting, I can use an ActionListener or ItemListener to find out what was selected and change the color again. My killer is trying to figure out how to know when they have selected the box. I tried adding MouseListener, PropertyChangeListener, AncestorListener. None are doing a thing when the JComboBox is first selected.
Any help would be much appreciated.
Thank you. -
I am using the warp tool to stabilize my video and get rid of the edge artifacts. The program is very clear about how long it will take to analyze, but there is nothing about how long the stabilization will take nor when I know when it is complete. Thanks ahead of time.
Warp Stabilising is a two part process.
Analysis and Stabilising.
Both have a banner across the Program Monitor during the process ( unless you have turned that off.
Analysis start automatically on forst application...but you can rock in there and start adjusting the parameters.
You may need to hit "Analyse" Button again.
You should see the number of frames and the estimated duration during this process. -
How to know when the voltage is over the X-axis
I want to know if I can know when a voltage or current or any data pass the X-axis?
I have 2 type of data, Current and Voltage, and I want to know which one will cross the X-axis first, can some one help me on that?
Because with that I will know if my system is inductive or capacitive.
ThanksHave a look at the code snippet. The code can probably be improved using a For Loop, but this one should give you an idea of how to implement the solution.
I did not know the order of your data, so I called it top & bottom. It will also look for crossing the X-axis at the same time.
If values are increasing instead of decaying, then swap the Less or Equal to Greater than or Equal, and swap the less than to greater than. I think you'll get the picture.
Message Edited by Ray.R on 03-17-2010 09:28 AM
Attachments:
crossesXaxis.png 25 KB -
Streaming audio file over the network w JMF. How to know when the file end
Hi
I am streaming audio file over the network using JMF. I want to be able to know when a file end so I can close the streaming session.
Can some one please help
ThanksIf you put a ControllerListener on the Processor that's associated with generating the RTP stream, it'll generate an "EndOfMedia" event when the end of the file is reached.
-
How to know when the tablespace was deleted?
Hi
can we find the information regarding which has been deleted.
can we find that when it was deleted.
can we find who deleted it?
Thanks
ShaikhHi,
Just for Example :-
If you have given the access rights for two Users, who have the privi's to drop the tablespaces...and think you dont have the Option of Alert Log.
what you would do..??
Auditing...??
Tracing.. ??
I think better Option is Trace for Specific Session, which ever he is willing to you.
How does that help in this scenario and otherwise also ? No one is gonna enable trace like this for the users.
Let me know your valuable feed back, that might help me in correcting my mistakes..!! ';-)
Thanks
Pavan Kumar N -
How i know when a EXECUTE_QUERY retrieved last record
Hi...
How i know when the EXECUTE QUERY retrieved the last record in a block ....?
Exist a trigger after trigger POST-QUERY?
Regards
Hector Gabriel Ulloa Ligarius
Santiago of Chile
http://es.groups.yahoo.com/group/desarrolloOracle/Kevin, sorry
But the :system.last_record not change the value during the execution of EXECUTE_QUERY.
Only useful when the data was retrieved into blocks...not during..
Other mode?
Regards
Hector Gabriel Ulloa Ligarius
Santiago of Chile
http://es.groups.yahoo.com/group/desarrolloOracle/ -
When i run Time Machine to back up my computer on to an external hard drive, i have no way of knowing when the back up process has been completed. This is necessary to know because i don't leave my external hard drive connected to the computer. I routinely disconnect it after backing up the hard drive, and then i store the external hard drive in a different location from the computer. So, knowing when the back up process has been completed would be a very helpful thing to have the computer specify.
Just enable Time Machine's menu extra (System Preferences -> Time Machine -> Show Time Machine in menu bar.
This will add a little Time Machine icon to your menubar. When Time Machine is actively backing up your data, the icon will spin as a visual indicator. You can also click the menu icon to see the backup status, including how much data is left to back up. -
my ipod has the green lights however when i try to listen to music ....nothing ....i tried several head sets. how do i know when the ipod is finally dead
Read the manual for a solution - iPod Manuals
-
How do we know, when the service contract is last modified ?
How do we know, when the service contract is last modified and by whom ?
thanks
siva
Edited by: sivapara on Nov 24, 2008 3:14 PMTo add also in OKC_K_HISTORY_B for some actions.
Thanks
Nagamohan -
How does c:url tag know when the session is cookieless and thus to redirect
i have been looking at the source code for c:url tag and can't figure out how they are doing that. I need a way to do that in a jsp, to check if the cookies are allowed or not.
how does c:url tag know when the session is cookieless and thus to redirecthuh?
What do cookies have to do with redirecting?
Cookies get encoded into a URL using the method in HttpServletResponse: response.encodeURL() or encodeRedirectURL().
That method determines whether or not it prints out the session id as part of the url, or it gets uses cookies.
You can try: request.isRequestedSessionIdFromCookie().
If that is true, you know that session cookies are supported (or at least that one was) -
how do you know when the music is synced to the ipod?the lod version would show it syncing in the window at the top of the screen this version doesn't.
If you have access to a Mac couldn't you receive your verification via iMessage and work to view you iCloud Account?
-
How make to know when the attachment file display its visible or hidden
Hi guys,
sorry for my english.
In my scenario I have two button for open or close the attachment file display with the script 'app.execMenuItem("ShowHideFileAttachment");'.
But i don't know when the attachment file display its visible or hidden or detect when the user clicks on show/hidden in the display.
Anybody knows?
Thanks in advance.
ZAMPAZAMPA.Thanks radzmar,
You help me a lot, but how i make to ask to pdf is it panel of attachment its open?
I make this:
event.target.viewState == {overViewMode:7}
but return false all the time when panel of attachment its open and when its close.
ZAMPAZAMPA.
Maybe you are looking for
-
DSO error while creating update rules
Hi All, i am new to BI 7.0 , while creating update rules for datastore object , i have given the infosource name, and tried to activate it, then i got the error, ERROR: infoobject 0recordmode is missing from the infosourse Can any one help
-
Generally companys which combination of modules want to implement crm in
hi experts generally companys which combination of modules want to implement crm in present scenario in topics like marketing,sales,service,mobilsales, Internet sales,web clint, win clint ,E comers,and so on.............. 1, All combinations 2, bes
-
Employee Contract Letters need to be Generated
Hi All, I need to generate Employee Contract Letters for this should I use WebADI or XML Publisher or any other solution , kindly suggest me. Regards,
-
Office 2001/Dynamic Memory?
Do the programs in Office 2001 have Dynamic Memory while using OS 9.2?
-
How to use both EBS OEL 64bit OVM Temp & SOA/Weblogic OEL 32bit Template?
I want to use EBS vision OVM Templates on linux 64bit. But other OVM templates (SOA, Weblogic etc) that I need to run GRCM are available only under linux 32. How do I go about it if I want to use GRCM (Oracle Gov, Risk & Compliance Manager).