Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Friday, April 19 2019 @ 08:13 AM BST

FSA script from Steve Allen and Parallels Desktop

OS X FAQAre you using the fsa (find ssh agent) script from Steve Allen on your Mac ? Be careful with Parallels Desktop: apply this little patch to avoid annoying trouble when opening a Terminal session…

The FSA script written by Steve Allen (available here) is great to automate ssh-agent handling.

But it scans /tmp for ssh sockets without any depth limit. It's fine for most situation but the trouble with Parallels Desktop is that sometimes it mounts some virtual machine's volume in /tmp.

The immediate consequence is that execution of the fsa script embedded in a .bashrc or any other Terminal session's startup script will take "forever" to complete...

The simple fix is to change:

agentsocks=`find /tmp/ -user $LOGNAME -type s -name "*agent*" -print 2>/dev/null`

agentsocks=`find /tmp/ -maxdepth 2 -user $LOGNAME -type s -name "*agent*" -print 2>/dev/null`

What's Related

Story Options

FSA script from Steve Allen and Parallels Desktop | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2019 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.32 seconds