hello,
I run a python cgi script under Apache...
and while the script is running i want to display a "please wait"
message until the script finish.
I have tried to do this but the "please wait" message appears at the
script end (which is useless at this time! )
here my script:
------------------------------------------------------------------------------------------------
def get_ret(status) :
signal = status & 0xff
if signal == 0:
retcode = status >8
else:
retcode = 0
return signal,retcode
pidActuel = os.spawnl(os.P_ NOWAIT,"c:\\pyt hon25\
\python.exe","p ython","Main.py ")
if ( get_ret(os.wait pid(pidActuel,0 ))[1] == 0 ):
print """ END"""
else:
print """ please wait... """
-------------------------------------------------------------------------------------------------
I run a python cgi script under Apache...
and while the script is running i want to display a "please wait"
message until the script finish.
I have tried to do this but the "please wait" message appears at the
script end (which is useless at this time! )
here my script:
------------------------------------------------------------------------------------------------
def get_ret(status) :
signal = status & 0xff
if signal == 0:
retcode = status >8
else:
retcode = 0
return signal,retcode
pidActuel = os.spawnl(os.P_ NOWAIT,"c:\\pyt hon25\
\python.exe","p ython","Main.py ")
if ( get_ret(os.wait pid(pidActuel,0 ))[1] == 0 ):
print """ END"""
else:
print """ please wait... """
-------------------------------------------------------------------------------------------------
Comment