In linux: how to exit a program but not kill it?
        Posted  
        
            by 
                biomed
            
        on Super User
        
        See other posts from Super User
        
            or by biomed
        
        
        
        Published on 2011-01-03T01:37:42Z
        Indexed on 
            2011/01/03
            1:55 UTC
        
        
        Read the original article
        Hit count: 289
        
I use Ubuntu 10.10 and I have a python program (mnemosyne) that I synchronize the data files using dropbox. If I forget to close (exit) this program. Here is my problem scenario. I leave the program running at home and go to work but if I open the program at work and work on it the data file is changed and I loose my progress at home when I exit (it automatically saves) when exitimg. I thought I could create a cron job to automatically close mnemosyne every morning regardless os me remembering to do it or not but if I use kill the program exits without saving the datafile and I end up with a tmp file and an error message when I restart it. Is there a better way of sending the exit signal to this program emulating me clicking file>exit menu option.
Thanks
© Super User or respective owner