keychain patch (2)

Karl M karlm30@hotmail.com
Mon Mar 17 01:10:00 GMT 2003


Hi All...

I made a small patch to keychain, so that it creates an additional
pid file named ~/ssh-agent.cmd

The only difference between this and the previous version is that the file 
created is ~/ssh-agent.cmd instead of ~/ssh-agent.bat so it is a bit less 
obtrusive. I couldn't do a ~/.ssh-agent-cmd file because the call mechanism 
in cmd.exe handles it differently (uses a different shell instead of the 
same shell).

This allows non-cygwin ssh-aware programs (such as unison) to take
advantage of the keychain functionality. The new file can be used
from a windows command script by

@echo off
call bash --login /dev/null
call C:\Cygwin\home\kmoerder\ssh-agent.cmd
unison-2.9.1

The call to bash invokes the keychain in the .profile to get the keys ready 
then the call to ssh-agent.cmd defines the env variables for non-cygwin 
ssh-aware programs (such as unison).

Thanks,

...Karl


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: keychain-patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030317/941678ba/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list