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 Answer 1

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.

2
  • Thanks, worked great. I had tried this command before, but missed the ";". Is there a command to avoid that the terminal window pops up, when the command is executed? Apr 23, 2014 at 4:32
  • You need to set up a cron job.read askubuntu.com/q/2368/184942. actually you are doing the same but with a GUI frontend.I think CLI method does not pop up a terminal. Apr 23, 2014 at 4:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .