in reply to print() function hang for long time

It seems that this line is causing the problem:
system("$cmd > /tmp/instappcmd.out 2>&1");

which expands to
system("/tmp/FMinstall.sh > /tmp/instappcmd.out 2>&1");

Did you check the process table for this script? Perhaps it was blocked, or otherwise required that much time to run?

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: print() function hang for long time
by dengguochen2003 (Initiate) on Feb 19, 2013 at 09:03 UTC
    Hi, QM, Thank you for the comments on this issue. From the log that line you mentioned already is finished successfully.

    4 2013/02/14 16:50:12 execution trace:

    Because the time stamp in the above line is retrieved by code at line 3, and line 3 is executed after that line ( system("$cmd > /tmp/instappcmd.out 2>&1") ) you mentioned. So that line you mentioned must be already done successfully. It must hang on the line 12, which calls print function.