]> git.cworth.org Git - notmuch-wiki/blobdiff - remoteusage.mdwn
Fixed typo in ControlMaster section of remoteusage
[notmuch-wiki] / remoteusage.mdwn
index 0639c31bc1c038ec379318ccfa8e4aa34bb2e9fc..c6e3ff6abd52a798b31609e125f527512c7be8b0 100644 (file)
@@ -44,27 +44,27 @@ entries. This is currently necessary so that the emacs process-filter
 doesn't chop off messages. It's an obvious hack, and hopefully won't
 be necessary in the furture.
 
 doesn't chop off messages. It's an obvious hack, and hopefully won't
 be necessary in the furture.
 
-       #!/usr/bin/env bash
-       
-       SSH_BIN="/path/to/ssh/on/client"
-       USER="user_name"
-       HOST="server_name"
-       NOTMUCH_REMOTE_BIN="/path/to/notmuch/on/server"
-       
-       if [ $1 = "search" ]; then
-           COUNT=0;
-           OUT=`$SSH_BIN $USER@$HOST $NOTMUCH_REMOTE_BIN $@`
-           echo "$OUT" | while read line; do
-               COUNT=`expr $COUNT + 1`
-               echo "$line";
-               if [ $COUNT = 10 ]; then
-                   sleep 0.1;
-               fi
-           done
-       else
-           $SSH_BIN $USER@$HOST $NOTMUCH_REMOTE_BIN $@
-       fi
-       
+    #!/usr/bin/env bash
+    
+    SSH_BIN="/path/to/ssh/on/client"
+    USER="user_name"
+    HOST="server_name"
+    NOTMUCH_REMOTE_BIN="/path/to/notmuch/on/server"
+    
+    if [ $1 = "search" ]; then
+        COUNT=0;
+        OUT=`$SSH_BIN $USER@$HOST $NOTMUCH_REMOTE_BIN $@`
+        echo "$OUT" | while read line; do
+            COUNT=`expr $COUNT + 1`
+            echo "$line";
+            if [ $COUNT = 10 ]; then
+                sleep 0.1;
+            fi
+        done
+    else
+        $SSH_BIN $USER@$HOST $NOTMUCH_REMOTE_BIN $@
+    fi
+       
 Save this to a file, "remote-notmuch.sh", in your path.
 
 Now you can run "remote-notmuch.sh new". You can call the script
 Save this to a file, "remote-notmuch.sh", in your path.
 
 Now you can run "remote-notmuch.sh new". You can call the script
@@ -107,7 +107,7 @@ Add the following to your ~/.ssh/config file:
 
     Host server_name 
     ControlMaster auto
 
     Host server_name 
     ControlMaster auto
-    ControlPath ~/.ssh/master0%r@%h:%p
+    ControlPath ~/.ssh/master-%r@%h:%p
     
 You can also se the Host to "*", if you want to use it for all
 connections. I usually have an interactive ssh connection to my home
     
 You can also se the Host to "*", if you want to use it for all
 connections. I usually have an interactive ssh connection to my home