jeffersyuan
27th November 2006, 05:46
Hi, Dear all,
If I need to wait for program1 finished then to do another program2,
And program1 and program2 is not 3GL or 4GL program. So how to use appl_start to do it?
thank you.
Jeffers
mark_h
27th November 2006, 06:51
Are they client side programs or server side? I believe on the server it is run.prog. For client side you can search for app_start and app_status to see formats. I think you can use app_status to check the status to see when it is closed.
jeffersyuan
27th November 2006, 08:30
Mark,
I think start.application.local will be a better solution.
Thank you for your help.
Hitesh Shah
27th November 2006, 17:31
As suggested by Mark , app_status in combination with while loop and suspend can also be used to wait till the program finishes .
mark_h
27th November 2006, 17:33
I see it in ottdllbw - we are on 4c4 SP20, so I do not know if a certain SP is required.
NPRao
27th November 2006, 19:34
Mark, Hitesh,
Jeff is on LN Tools.
long app_start( string commandline, string directory, string stdin, string stdout, string stderr )
Description
Deprecated. This function is only supported for Baan Windows and its usage is therefore deprecated. Instead you should use function: start.application.local().
long app_status( long app.id )
Description
Deprecated. This function is only supported for Baan Windows and its usage is therefore deprecated. Instead you should use function: start.application.local().
Jeff,
Also note:
SSA ERP LN 6.1 Programmers Guide
Functions that should be used with caution
start.application.local()
Don't use this function to start applications that might not be present on each desktop (like BW.exe).
jeffersyuan
28th November 2006, 03:07
Dear All,
Yeah, can use the loop. But I think with a loop will discrease the performance.
REPEAT
sleep(100)
UNTIL app_status()>0
Thank NPRao for your kindly help.
Jeffers.