Re: ITP: tsocks -- transparent network access through a SOCKS 4 or 5 proxy
On Tue, Jul 17, 2001 at 04:44:52PM +0200, Tamas SZERB wrote:
> On Tue, 17 Jul 2001, Bernhard Josef Rieder wrote:
>
> > sorry. I forgot to mention something:
> > .bashrc:
> > function ts () { . /usr/local/bin/tsocks $1; }
>
> See, the tsocks <appname> <args> is the best thing (like fakeroot) to use
> tsocks. I am assured to package tsocks, soon guys. Thanks supporting
> me. :)
>
> Any comments and suggestions will be welcomed by BTS. ;)
I'll ignore that and post my suggestion here anyway.
Look at ssh-agent and how it does things. You can do "ssh-agent bash"
to get a bash with ssh-agent variables set and the ssh-agent itself
(that's how the Xsession does it).
If you don't give an app to ssh-agent, it will start an agent and print
out shell commands to set the variables. Thus that simply becomes "eval
`ssh-agent`" to set it up in the current shell. This looks like the
cleanest solution overall.
--
Andreas E. Bombe <andreas.bombe@munich.netsurf.de> DSA key 0x04880A44
Reply to: