How do I ensure message files have an increasing modification time?

If you move message files between machines it is likely that the modification times of those files will not be preserved; and there is a risk that if you use the file streamer to process those files, data will be discarded because of non advancing message state.

You can use the following command to update the modification time for all files in the current directory, such that the file stream has a unique and advancing modification time.


for file in `ls *.*`;
  do touch $file;
  sleep 2;
done

Have more questions? Submit a request

Comments

Article is closed for comments.

Powered by Zendesk