X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=remoteusage.mdwn;h=2e867e2e4f3e140715b4336a5026607cc24bb597;hb=882d2cdc07b55af79c5354fb2562daee22a62b81;hp=48aced826cc5478283fd802fca50691735af397a;hpb=1e5c1247bf095a03338f40e5a7bfaaec760a6c4b;p=obsolete%2Fnotmuch-wiki diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 48aced8..2e867e2 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -24,7 +24,8 @@ You will need to have the following items in place: 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 @@ -69,7 +70,7 @@ future calls can reuse the socket. create_socket_dir () { - mkdir "${SOCKET_DIR}" + mkdir "${SOCKET_DIR}" chmod 700 "${SOCKET_DIR}" } @@ -99,13 +100,11 @@ future calls can reuse the socket. 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.