Re: require and true value

2005-08-17 Thread gui
wrote: > gui am Mittwoch, 17. August 2005 14.53: > >>hi, > > [...] > >>pb arrives when I'm using require, I keep getting a "tools.pl did not >>return a true value" message. In the archives I noticed that everybody >>is saying that "you must no

require and true value

2005-08-17 Thread gui
hi, I've looked in the archive but somehow my pb isn't solved. I've started to create a file that will containes a bunch of subroutines (file called "tools.pl"), which I intend to use later in my upcoming programs. I wanted to try out the require function, so I just put one subroutine in the tool

Re: Net::SMTP : how to include sender address ?

2005-08-09 Thread gui
Octavian Rasnita wrote: > I guess you want to add it into the header of the message: > > $smtp->datasend("From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: This is the subject I made that guess a short while after I send the message. turn out : $smtp->datasend("From: "); was the answer

Net::SMTP : how to include sender address ?

2005-08-09 Thread gui
Hi, I'm playing around with the Net::SMTP module. I can send email correctly, but each ones I send there's no sender's address. I thought that using mail() would to that, since it's the only method that takes the sender's address as parameter. but that's not it. how can I add a sender address to

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

2005-06-13 Thread gui
er to change that, it as to be set to 0 manually when parameting Net::SSH::Perl my %params = ( 'priviledge'=0, 'protocol' => 2, 'identity_files' => [EMAIL PROTECTED], ); MNibble a écrit : > Gui wrote: > >> I'm really so

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

2005-06-10 Thread gui
add that link!). Anyway, I'll send another email to the list... maybe I'll get different responses. I'm surprised nobody got interested in this problem. Anybody had a socket bind problem before? John Doe a écrit : > Am Mittwoch, 6. April 2005 12.52 schrieb gui: > > This phen

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

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-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. ubun

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