On Jan 24, 10:10 pm, "zackrspv" <old...@xxxxxxxxx> wrote:
Quick question:
Net::SSH
Net::SSH2
Net::SSH::Perl
All 3 are great modules, however, correct me if i'm wrong, but is it
actually possible to send MULTIPLE commands over ONE connection w/ any
of them?
From the Net::SSH::Perl documentation:
NOTE: the SSH-1 protocol does not support running multiple
commands per connection, unless those commands are chained
together so that the remote shell can evaluate them.
Because of this, a new socket connection is created each
time you call cmd, and disposed of afterwards. In other
words, this code:
my $ssh = Net::SSH::Perl->new("host1");
$ssh->login("user1", "pass1");
$ssh->cmd("foo");
$ssh->cmd("bar");
will actually connect to the sshd on the first invocation
of cmd, then disconnect; then connect again on the second
invocation of cmd, then disconnect again.
Note that this does not apply to the SSH-2 protocol. SSH-2
fully supports running more than one command over the same
connection.
so it looks like you need to upgrade to ssh2, or live with multiple
connections...
yes i'm expecting mean responces, i'm used to Usenet by
now
Re: downloading a single file using multiple threads ... The multi part requests in HTTP1.1 are meant to request a single part or multiple parts in a single request, but you can't requests multiple parts in parallel from multiple client threads. ... I know that down-load managers claim to work over HTTP, but that doesn't mean they support multi-part parallel request handling over the same or multiple connections, I don't even know if the protocol allows you to issue new range request when you have a range requests pending. ... If on one connection the client asks for the first megabyte and on a second connection the same client asks for the second megabyte, then if the server is capable of servicing both requests at the same time, there's no reason the client can't wind up receiving both the first and second megabytes in parallel. ... (microsoft.public.dotnet.languages.csharp)
Re: downloading a single file using multiple threads ... The multi part requests in HTTP1.1 are meant to request a single part or multiple parts in a single request, but you can't requests multiple parts in parallel from multiple client threads. ... There's nothing about HTTP that requires servers to restrict their communications to a given client to a single connection, and there's nothing about HTTP that stipulates that an HTTP server needs to coordinate communications on independent connections. ... (microsoft.public.dotnet.languages.csharp)
Re: Database problem.....HELP ... Sorry, DM, I have never used the wizard, I've always created my own connections / commands and executed them myself. ... I would suggest obtaining a valid connection string that works with this DB, then programmatically create and open a connection, create a command, add any needed parameters, etc. ... Went to add a class then seleceted SQL Database then set the name to MyCompany.mdf and clicked add, then the Data Source Configuration Wizard window opens with this error. ... (microsoft.public.dotnet.languages.csharp)
Re: [SLE] Wireless Internet at public hotspots -- update ... You can create multiple versions, ... You could use the ifdown and ifup commands.... What I see from ifconfig is that eth1 will show an IP ... > showing me an IP that wasn't really assigned by DHCP?... (SuSE)