if (system("/bin/cp $temp_cur $final_file")) { printf("Error - file '$final_file' not updated.\n"); exit(-1); }