Archive file and execute commands repeatedly