Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # cluster-client.sh
- # Usage: ./cluster-client.sh user@server
- SERVER="$1"
- if [ -z "$SERVER" ]; then
- echo "Usage: $0 user@server"
- exit 1
- fi
- # Capture current tty and forward to server
- # `script -q -f` captures interactive tty output
- script -q -f /dev/null | ssh -T "$SERVER" \
- "cat >> /tmp/tty-cluster.log"
Advertisement
Add Comment
Please, Sign In to add comment