Re: ITP: tsocks -- transparent network access through a SOCKS 4 or 5 proxy
On Wed, 18 Jul 2001, Bernhard Josef Rieder wrote:
> Some problems about tsocks(the script supplied within the package):
>
> tsocks lftp ftp.somewhere.xy
> works fine until you press ^Z
>
> normally lftp catches this and brings the running job to background
>
> when using tsocks lftp .... the ^Z is for some reason captured by
> bash and suspends lftp.
>
> That's why I like the LD_PRELOAD way but without typing it always.
yep, but where is the problem? :)
(from the man ts)
ts [application [application's arguments]]
or ts [on|off]
or ts
[..]
OPTIONS
[..]
[on|off]
that is useful if you'd like to turn on or off the
socksifying with expanding or shrinking the
LD_PRELOAD environment variable. If you want to use
this function, you HAVE to source that shell script
from yours, like this: "source /usr/bin/ts" or ".
/usr/bin/ts"
Example:
". ts on" -- add the tsocks lib to the LD_PRELOAD
". ts off" -- remove the tsocks lib from the
LD_PRELOAD
So it is so simple to use as yoy wished: . ts on -- and oh my, in your
current process (no newer forked sh) there will be the right LD_PRELOAD,
and . ts off -- and just watch, tsocks will be eliminated from the
LD_PRELOAD. That must be enough for you, and for us. :)
--
VWOL
Tamas SZERB <toma@rulez.org>
GPG public key: http://alabama.rulez.org/~toma/gpgkey-toma.asc
Reply to: