Markku A. Mähönen wrote: > You don't get the exit code, if the system boots while 'cp -u'
At that point the computational model of the machine is broken and there isn't anything that will protect you against file corruption. But you mentioned interrupted and therefore normal SIGINT came to mind. Once again rsync is your friend in those situations because it can be used to replicate a source file to a target file using specified rules (e.g. timestamp, size, checksum) which will ensure that the file corruption is corrected. Also rsync by default will perform the copy to a temporary file name before renaming it into place. If the power cord is pulled out midway through the copy a temporary file will be left but not a partial target file. Bob _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils