Mosh

From FarmShare

Revision as of 16:13, 8 October 2015 by Epoch (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

mosh-server

A sample wrapper script for mosh-server.

 #!/bin/sh
 
 export LC_ALL=en_US.UTF-8
 export LANG=$LC_ALL
 export LANGUAGE=$LC_ALL
 
 if [ $?KRB5CCNAME ]; then
     ccfile=`echo $KRB5CCNAME | /usr/bin/cut -d : -f 2`
     /bin/mv $ccfile $ccfile.mosh
     export KRB5CCNAME=FILE:$ccfile.mosh
 fi
 
 ARGS=$@; /usr/bin/pagsh -c "/usr/bin/aklog && /usr/bin/mosh-server ""$ARGS"""
Personal tools
Toolbox
LANGUAGES