Re: Net::SSH::Perl bind socket problem

2005-06-13 Thread gui
Thanks for your explanations MNibble, I'm still not sure what to do with fork, but now I have an idea of how it works. I finally got that problem solved!!! when executing the script as root the priviliged parameters is set to 1 by default. priviliged binds you to a specific port. In order to cha

Re: Net::SSH::Perl bind socket problem

2005-06-11 Thread MNibble
Gui wrote: I'm really sorry for not replying during all this time. I'm involved in lots of project, and I had to set this one aside for a moment. But now I'm determined to get this thing fix! I still have beginner level in perl, and can't quite make sense of the code you posted. I asked the net

Re: Net::SSH::Perl bind socket problem

2005-06-10 Thread gui
I'm really sorry for not replying during all this time. I'm involved in lots of project, and I had to set this one aside for a moment. But now I'm determined to get this thing fix! I still have beginner level in perl, and can't quite make sense of the code you posted. I asked the net::ssh::perl m

Re: Net::SSH::Perl bind socket problem

2005-04-08 Thread gui
John Doe wrote: Am Dienstag, 5. April 2005 15.20 schrieb gui: [snip] Net::SSH: Can't bind socket to port 1023: Adresse déjà utilisée at ./test_ssh.pl line 50 There's also a mailing list dedicated to Net::SSH::Perl (from man page): "SUPPORT For samples/tutorials, take a look at the scripts i

Re: Net::SSH::Perl bind socket problem

2005-04-07 Thread John Doe
Am Dienstag, 5. April 2005 15.20 schrieb gui: [snip] > Net::SSH: Can't bind socket to port 1023: Adresse déjà utilisée at > ./test_ssh.pl line 50 There's also a mailing list dedicated to Net::SSH::Perl (from man page): "SUPPORT For samples/tutorials, take a look at the scripts in eg/ in th

Re: Net::SSH::Perl bind socket problem

2005-04-06 Thread John Doe
Am Mittwoch, 6. April 2005 12.52 schrieb gui: > John Doe wrote: > > I don't see the exact reason. But after having a look in the code > > (Perl.pm, sub _create_socket, which tries ports from 1023 down to 512 to > > bind to), maybe the ssh object is not destroyed between the loops. You > > could try

Re: Net::SSH::Perl bind socket problem

2005-04-06 Thread Michael Gale
Hello, I am not a experienced perl programmer but from the look at your first post with the perl code. Do you not have to run a close sessions ? So after your commands: $ssh = Net::SSH::Perl->new($_, %params); $ssh->login("root"); ($stout,$sterr,$exit) = $ssh->cmd("wge

Re: Net::SSH::Perl bind socket problem

2005-04-06 Thread gui
John Doe wrote: I don't see the exact reason. But after having a look in the code (Perl.pm, sub _create_socket, which tries ports from 1023 down to 512 to bind to), maybe the ssh object is not destroyed between the loops. You could try: ** define $ssh as my variable within the loop (not outside

Re: Net::SSH::Perl bind socket problem

2005-04-06 Thread John Doe
Bonjour Not many answers, so... Am Montag, 4. April 2005 21.16 schrieb gui: > hello, > > I'm making a simple script that's supposed to update a certain number of > boxes, spread around the area. > my script is supposed to to connect to every hosts (via a file named > "hosts") using ssh, launch wg

Re: Net::SSH::Perl bind socket problem

2005-04-05 Thread gui
added debug in the params. Can't find any real clue on what to do though, here's what I got : ubuntu: Reading configuration data /home/gui/.ssh/config ubuntu: Reading configuration data /etc/ssh_config ubuntu: Allocated local port 1023. ubuntu: Connecting to 192.168.0.1, port 22. ubuntu: Remote p

Re: Net::SSH::Perl bind socket problem

2005-04-04 Thread mgoland
- Original Message - From: gui <[EMAIL PROTECTED]> Date: Monday, April 4, 2005 3:16 pm Subject: Net::SSH::Perl bind socket problem > hello, > > I'm making a simple script that's supposed to update a certain > number of > boxes, spread around the area

Net::SSH::Perl bind socket problem

2005-04-04 Thread gui
hello, I'm making a simple script that's supposed to update a certain number of boxes, spread around the area. my script is supposed to to connect to every hosts (via a file named "hosts") using ssh, launch wget to retrieve the patch update, and install it. Things work fine for the first host of