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";
In reply to Re: "close" failing
by jesuashok
in thread "close" failing
by munishdev
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |