summaryrefslogtreecommitdiff
path: root/remoteusage
diff options
context:
space:
mode:
authorTomi Ollila <tomi.ollila@iki.fi>2014-03-01 13:57:14 +0200
committerTomi Ollila <tomi.ollila@iki.fi>2014-03-01 13:57:24 +0200
commit5a5d269c5a3ffe1b995a88202b643c4f25f1ca38 (patch)
tree8df5082905e0d16fed6771c5b058cbfd53c5fa94 /remoteusage
parente3355ef27b3593f76acf98d9d4ce8602dd7578ee (diff)
script & doc in par with nottoomuch-remote.(bash|rst)
Diffstat (limited to 'remoteusage')
-rw-r--r--remoteusage/124.mdwn15
1 files changed, 13 insertions, 2 deletions
diff --git a/remoteusage/124.mdwn b/remoteusage/124.mdwn
index a12f006..6020de1 100644
--- a/remoteusage/124.mdwn
+++ b/remoteusage/124.mdwn
@@ -50,13 +50,16 @@ Write the following code to a file, for example `remote-notmuch.sh`.
'search'*'--output=tags'*) echo 'errors'; exit 0 ;;
esac
+ # for unhandled command line print only to stderr...
+ exec >&2
+
if ssh $SSH_CONTROL_ARGS -O check 0.1
then
- echo ' Control socket is alive but something failed during data transmission.'
+ echo ' Control socket is alive but something failed during data transmission'
exit $ev
fi
- echo " See`sed '1d;2d;s/.//;q' "$0"` for help."
+ echo " See`sed '1d;2d;s/.//;q' "$0"` for help"
#EOF
Note the `0.1` in ssh command line. It is used to avoid any opportunistic
@@ -105,6 +108,14 @@ After configuring
to the `./remote-notmuch.sh` wrapper script testing with
`./remote-notmuch.sh help` should work fine.
+An alternative strategy is to symlink the configured socket to
+the one in ``./nottoomuch-remote.bash`` like:
+
+ ln -sfT master-alice@example.org:22 ~/.ssh/master-notmuch@remote:22
+
+This also provides easy way to switch to another master connection without
+need to edit this script.
+
## Configure Emacs on the client computer ##
See the section *Configure Emacs on the client computer* in