in reply to "close" failing
The problem is because of Pipe. There is no wait specified to finish "abc.sh".
Please refere the above code and comment. If you use warn you will get the error in server logs as well.open(OUTPUT, '|sort >foo') # pipe to sort or die "Can't start sort: $!"; #... # print stuff to output close OUTPUT # wait for sort to finish or warn $! ? "Error closing sort pipe: $!" : "Exit status $? from sort";
"Keep pouring your ideas"