Robert Dober
2/25/2009 5:01:00 PM
On Wed, Feb 25, 2009 at 3:26 PM, Raimon Fs <coder@montx.com> wrote:
> Thanks to all,
>
> It's working now ...
>
> I'm aware of the dead-lock or unknow things, I'm experimenting with it.
>
> This is because I have to upload some files to an ftp server, but I must
> do it trgough a VPN connection.
>
> I want to start this VPN connection manually, and once connected, fire
> all the file upload.
>
> Thanks, I'm sure I'll have lots of new questions, but now I can go
> further ...
>
I would like to warn you about the path you have chosen, though you
will for sure learn lots of things.
If things get too tough, you might want to have a look at pty in the
standard lib.
But if your VPN client allows for port forwarding you should probably
just do that. Use ssh to forward the VPN connection to a local port
and use FTP right away. Often this is configured by the VPN
concentrator but if it is doable, it is the easiest way.
HTH
robert
--
There are some people who begin the Zoo at the beginning, called
WAYIN, and walk as quickly as they can past every cage until they get
to the one called WAYOUT, but the nicest people go straight to the
animal they love the most, and stay there. ~ A.A. Milne (from
Winnie-the-Pooh)