Execution of a script to be stopped after "x" minutes of time
I have 2 scripts test1.sh and test2.sh which are embedded in main script Test.sh
Test.sh
===============================================
#We are currently in Test.sh
#Some commands
#After executing above commands, we need to execute test1.sh
./test1.sh
./test2.sh
================================================
In the above scenario, I don't want test1.sh to be executed completely, instead, after some "x" minutes, execution of test1.sh should be stopped and script test2.sh should be executed.
Please Note: I am not supposed to change contents of test1.sh.
Please let me know if this is possible.
Thanks a lot.
--YSE
Last edited by YSE; 09-30-2008 at 04:38 AM.
Reason: Correction.
|