Skip to content

Instantly share code, notes, and snippets.

@PhilHudson
Created May 21, 2015 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhilHudson/5a13f4596e3b17680cf4 to your computer and use it in GitHub Desktop.
Save PhilHudson/5a13f4596e3b17680cf4 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Did caller pass in an epoch time to compare?
if [ $# = 1 ]; then
"${HOME}/bin/test-host-times-match" "$1" || echo 'WARNING: Time out of sync' 1>&2
fi
# Primes the (possibly new) screen session with a (possibly new) remote DISPLAY
echo "${DISPLAY:-:10.0}" > "${HOME}/tmp/display"
[ -x "`which screen`" ] || exit 1
screen -D -RR -e^Ja -U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment