I have a script with a number of cp commands that are structured as:
cp -Rcvn /fromdir /todir. This script has been in service for 2 years and
copies data files from QNX to a USB 2 drive formatted as FAT32 (a mix of t11
& t12 drives) - Fatfsys and Fsys.umass are also used in the process. Today,
a review of the script’s log file shows that all files are copied every time
the script is run even though previously copied versions of the files
As a test the script was run 3 times in succession with 11 files total and
one new file yet to be copied. First run all files were copied. Second
re-run, 4 files were copied. Third re-run 0 files were copied.
It appears the ‘n’ parameter is being ignored and I’m not understanding why
this is happening! I use this form of the command daily and it works with
QNX to QNX copies.
Can anyone shed some light?