annotate contrib/autossh/rscreen @ 523:9ac53695a44d tip

Update mktplinkfw to handle more boards
author Aleksandr Rybalko <ray@ddteam.net>
date Fri, 08 Jan 2016 23:53:34 +0200
parents 2c10d803a695
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
200
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
1 #!/bin/sh
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
2 #
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
3 # sample script to use autossh to open up a remote screen
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
4 # session, or reconnect to an existing one.
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
5 #
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
6 # $Id: rscreen,v 1.4 2002/05/07 17:54:13 harding Exp $
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
7 #
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
8 if [ "X$1" = "X" ]; then
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
9 echo "usage: `basename $0` <host>"
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
10 exit 1
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
11 fi
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
12
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
13 if [ "X$SSH_AUTH_SOCK" = "X" ]; then
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
14 eval `ssh-agent -s`
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
15 ssh-add $HOME/.ssh/id_rsa
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
16 fi
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
17
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
18 #AUTOSSH_POLL=600
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
19 #AUTOSSH_PORT=20000
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
20 #AUTOSSH_GATETIME=30
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
21 #AUTOSSH_LOGFILE=$HOST.log
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
22 #AUTOSSH_DEBUG=yes
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
23 #AUTOSSH_PATH=/usr/local/bin/ssh
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
24 export AUTOSSH_POLL AUTOSSH_LOGFILE AUTOSSH_DEBUG AUTOSSH_PATH AUTOSSH_GATETIME AUTOSSH_PORT
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
25
2c10d803a695 Add autossh package
ray@terran.dlink.ua
parents:
diff changeset
26 autossh -M 20004 -t $1 "screen -e^Zz -D -R"