On Wed, 16 Oct 2019 11:35:56 -0400, Darin Perusich wrote:
On Wed, Oct 16, 2019 at 11:08 AM Per Jessen <per@computer.org> wrote:
Istvan Gabor wrote:
I have a program which saves data in a file. It writes the file when the user quits the program. I would like to automatically save a copy of the data file when/after the program quits. How can I achieve that?
I presume there is more to it than this:
./program; cp file file2
If you program failed to run, or had a funky exist status that might inadvertently clobber data, so this would be a "safer" option.
prgram && cp file file1
Thanks for the note. I will change the script accordingly. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org