docs:mac:builds:unison

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:mac:builds:unison [2010/12/22 21:53] billhdocs:mac:builds:unison [2012/01/07 14:15] (current) billh
Line 21: Line 21:
 ===== typical example (after initial sync) ===== ===== typical example (after initial sync) =====
 :!: %%Notice the // double slashes on both sides of the ssh hostname%% :!: %%Notice the // double slashes on both sides of the ssh hostname%%
 +
 **sync.sh** **sync.sh**
 <code sh> <code sh>
Line 26: Line 27:
  
 unison /local/path ssh://hostname//remote/path unison /local/path ssh://hostname//remote/path
 +</code>
 +
 +===== command not found errors using ssh =====
 +When using ssh with unison, you are creating a non-interactive shell.  If unison is installed to /usr/local/bin/unison, you may not have that in your path when using a non-interactive shell.  I've tried various solutions to fix this, but the easiest one for me was to symlink to /usr/bin/unison:
 +<code>
 +# the error...
 +bash: unison: command not found
 +Fatal error: Lost connection with the server
 +
 +# the fix (on the host you are connecting to)...
 +ln -s /usr/local/bin/unison /usr/bin/unison
 </code> </code>
  • docs/mac/builds/unison.1293079999.txt.gz
  • Last modified: 2010/12/22 21:53
  • by billh