Thanks all exec was what I needed.
In reply to Re^2: Close script with open system call by Phweda in thread Close script with open system call by Phweda