gabriel rosenkoetter on 4 Mar 2004 17:45:03 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Weird Bash Question


On Thu, Mar 04, 2004 at 11:37:33AM -0500, Martin DiViaio wrote:
> ssh -2 -x -f -C -L 3389:windows_server_at_work:3389 martin@linux_box_at_work sleep 1

So have the script start at whatever (3389 would be fine) and an an
offset from a file in your home directory. Then increment the
integer in the file. (Probably want to do some sanity checking on
the file... like, that it's not a sym link to /etc/passwd, for
instance.)

You should also probably echo what local port you used to the
terminal.

I see how you got where you were, but you may have noticed that it
was kind of difficult to do it the way you were trying to. That's
because it's the Hard Way. :^>

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgp3yJ2yjjxHj.pgp
Description: PGP signature