On Wed, 16 Oct 2019 16:14:22 +0200, Knurpht-openSUSE wrote:
Op woensdag 16 oktober 2019 16:09:07 CEST schreef Istvan Gabor:
Hello:
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 could write a script that makes a copy of the file, but don't know how to start the script when the program quits.
Any idea or solution is welcomed.
Thanks in advance,
Istvan
Easiest: Launch the program from a bash script, f.e.
#!/bin/bash program cp src dest
This works perfectly in my case. Thanks! Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org