Created
August 22, 2011 11:20
-
-
Save k12u/1162161 to your computer and use it in GitHub Desktop.
ログインセッションの SSH_AUTH_SOCKを 取得する (macのcrontabからssh)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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