Skip to content

Instantly share code, notes, and snippets.

@k12u
Created August 22, 2011 11:20
Show Gist options
  • Save k12u/1162161 to your computer and use it in GitHub Desktop.
Save k12u/1162161 to your computer and use it in GitHub Desktop.
ログインセッションの SSH_AUTH_SOCKを 取得する (macのcrontabからssh)
$ ps -ef -E |grep ssh-a[g]ent | perl -lne 'm/SSH_AUTH_SOCK=([^ ]+)/;print $1'
/tmp/launch-aaaaaa/Listeners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment