Script sometimes creates an empty file

I have a script that runs ditto for me, and occasionally (if I exit the script while ditto is running in the background) it will leave an empty file named 0 in the script's directory. The next time I run the script, it generates incorrect data because of this file. I know I can easily insert a check for this file and delete it, but does anyone know what this is and why it happens?

Thanks.

Please do not double post:

Wait for the members to respond to your post.

1 Like