I have written some scripts for automation. But sometimes scripts hangs while executing sleep 10; or any other sleep. Than if i press CNTRL+C on command prompt, it resumes the execution.
I wonder if you could let me know the solution.
I am using windows XP and perl version - 5.14
Actually my master script calls many batch files and uses modules also as
Command::Execute("<some command>");
But suppose I have written one subroutine like inside one module named as Command.pm
sub Reset
{
<do some stuff>;
print "completed\n";
}
and I call it in master script as
Command::Reset();
So, sometimes what happens that print completed comes but the program on the command prompt stucks and when I press CNTRL+C it resumes.
So, I am not able to find out the issue what is happening actually.
So Please update me that is it possible that system is running so many processes so it just don't schedule that process so it stucks. or I should not use batch files.
Thanks & Regards
Jitendra