Thank you allquixotic. This worked well where the bash scripts failed.
[QUOTE=allquixotic;255692]