in reply to Detect Process End
$a is a reserved variable for sort. that could be anoother possible explanation.