how to send mail within a script ?

2005-10-22 Thread Juan B
HI,

I am trying to write a script which will send the
result of a var to mail web mail.this is what I wrote
:

#!/usr/bin/perl
#use strict;
use warnings;
my $file_listing = `/usr/bin/nmap -p 80 192.168.1.1`;

How can it be done? do I need to configure sendmail on
my linux box. please try to give a simple solutio
cause im new in perl.

thanks,

Juan



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: how to send mail within a script ?

2005-10-22 Thread Beau E. Cox
Hi Juan B -
  
At 2005-10-22, 01:37:53 you wrote:
HI,

I am trying to write a script which will send the
result of a var to mail web mail.this is what I wrote
:

#!/usr/bin/perl
#use strict;
use warnings;
my $file_listing = `/usr/bin/nmap -p 80 192.168.1.1`;

How can it be done? do I need to configure sendmail on
my linux box. please try to give a simple solutio
cause im new in perl.

thanks,

Juan


For me, the easiest way is to use the CPAN module Mail::Sender.
Have a look at the documentation at http://search.cpan.org.
If you like it and need further help installing or using it, let us know.

Aloha = Beau;
[EMAIL PROTECTED]
2005-10-22



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Finding all the files in a PC

2005-10-22 Thread Andrew McHorney

Hello

I am planning on developing a perl script that will find all the duplicate 
files (name, size and content) on a pc and remove the duplicate files. I 
have written a few scripts on a unix platform but non yet for a pc in a 
windows environment. Can someone provide a basic stub that will find all 
the files, the creation date and size and put them in a array. I want to 
avoid putting the directories in the array.


This is because of various problems with a hard drive and putting files on 
various removeable media disks.


Thanks,
Andrew



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Finding all the files in a PC

2005-10-22 Thread Wiggins d'Anconia
Andrew McHorney wrote:
 Hello
 
 I am planning on developing a perl script that will find all the
 duplicate files (name, size and content) on a pc and remove the
 duplicate files. I have written a few scripts on a unix platform but non
 yet for a pc in a windows environment. Can someone provide a basic stub
 that will find all the files, the creation date and size and put them in
 a array. I want to avoid putting the directories in the array.
 
 This is because of various problems with a hard drive and putting files
 on various removeable media disks.
 
 Thanks,
 Andrew
 
 
 

perldoc File::Find

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: Project planning

2005-10-22 Thread Alfred Vahau

Hi,
The newly released book Perl Best Practices by Dr. Damien Conway may 
be helpful in addition to those recommended already.


Alfred,

Steve Bertrand wrote:


Hi everyone,

This question may seem odd, but here goes anyway.

I've been working at an ISP for a few years now, and have been adding
to/modifying their current accounting system since I've got here. Of
course it is all Perl based.

This isn't a technical problem I'm having, but the system has well over
100,000 lines of code in several files. I want to change course, and
take a more organized approach to this.

My question is if there are any good books (particular to Perl), on how
to organize a large project like this to make it easier to consolodate
code, find code, and otherwise prevent myself from continuously
re-inventing the wheel. I am quite familiar with Packages, but I just
need some guidance with documenting/planning of the project.

Any tips very much welcome.

Tks,

Steve


 





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




call java in perl

2005-10-22 Thread ZHAO, BING

Hi,
I knew there are many ways to call java in perl or call perl in java, but I have been 
searching, still got nothing, does any of you know some online source about linking the two 
together?

thanks,

bing

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: call java in perl

2005-10-22 Thread Alfred Vahau

Hi,
Is Inline::Java module from CPAN any help? Besides there are others at

http://search.cpan.org/

Enter Java as the keyword to search for.

Alfred,

ZHAO, BING wrote:


Hi,
I knew there are many ways to call java in perl or call 
perl in java, but I have been searching, still got nothing, does any 
of you know some online source about linking the two together?

thanks,

bing





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




getting authors' names right (was Re: Project planning)

2005-10-22 Thread Jeff 'japhy' Pinyan

On Oct 23, Alfred Vahau said:

The newly released book Perl Best Practices by Dr. Damien Conway may be 
helpful in addition to those recommended already.


Granted, I'm not an author, and I rarely (if ever) see my name misspelled, 
but as a matter of courtesy, I'd really appreciate seeing Damian Conway's 
name spelled properly, and Randal (L.) Schwartz's name spelled properly, 
etc.  I see Damien and Randall constantly.


--
Jeff japhy Pinyan%  How can we ever be the sold short or
RPI Acacia Brother #734%  the cheated, we who for every service
http://www.perlmonks.org/  %  have long ago been overpaid?
http://princeton.pm.org/   %-- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: getting authors' names right (was Re: Project planning)

2005-10-22 Thread Alfred Vahau

Thanks Jeff. Apologies to Dr. Conway and the Perl community for the mistake.

Alfred,


Jeff 'japhy' Pinyan wrote:


On Oct 23, Alfred Vahau said:

The newly released book Perl Best Practices by Dr. Damien Conway 
may be helpful in addition to those recommended already.



Granted, I'm not an author, and I rarely (if ever) see my name 
misspelled, but as a matter of courtesy, I'd really appreciate seeing 
Damian Conway's name spelled properly, and Randal (L.) Schwartz's name 
spelled properly, etc.  I see Damien and Randall constantly.






--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response