0

I am trying to run Unison to sync my files locally. I want that to occur periodically, without the need of any interaction. For that reason I run gnome-schedule with the following command:

unison Folder -silent -ui text

Everything works fine, just the terminal stays open and prompts for ENTER. I want to exit the terminal automatically after finishing the syncronization. How could I do this?

Thanks and greetings

1 Answers1

2

You need to use the exit builtin function so that terminal may close automatically.Just add exit at the end of the command as

unison Folder -silent -ui text;exit

This will exit the terminal after command executes.