live_in_hades has asked for the wisdom of the Perl Monks concerning the following question:
With this background my question is do you guys know of a module that I haven't found that deals with ssh tunneling so that the tunnel becomes an object to be used or something??my $childPid = fork(); if ($childPid) { sleep 2; ## then open the database ## do stuff kill 'HUP', $childPid; } else { exec("ssh $user\@$host -L 3306:$host:3306 -N"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ssh tunneling
by tachyon (Chancellor) on Oct 11, 2004 at 02:06 UTC | |
|
Re: ssh tunneling
by atcroft (Abbot) on Oct 11, 2004 at 02:03 UTC | |
|
Re: ssh tunneling
by hsinclai (Deacon) on Oct 11, 2004 at 02:02 UTC |