that computer "client")
3. `ssh` and `dtach` on your client computer. (TODO: Make dtach
-optional, or allow screen or tmux to be used instead.)
+optional, or allow screen or tmux to be used instead.
+[[Here|remotewrapper]] is a version that does not require dtach.)
4. password-free login (public key authentication) from client to
server. [Here](http://www.debian-administration.org/articles/152) is a
create_socket_dir ()
{
- mkdir "${SOCKET_DIR}"
+ mkdir "${SOCKET_DIR}"
chmod 700 "${SOCKET_DIR}"
}
else
exit 1
fi
- CMD=$1
- shift
printf -v ARGS "%q " "$@"
- $SSH_BIN -S $SSH_SOCKET $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS}
+ $SSH_BIN -S $SSH_SOCKET $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${ARGS}
}
- notmuch_run $@
+ notmuch_run "$@"
Save this to a file, "remote-notmuch.sh", in your path.
Now you can run "remote-notmuch.sh new". You can call the script
anything you like. I actually have $HOME/bin/notmuch linked to that
script, so I can have transparent
-usage.
+usage.
##Configure your emacs client##