Re: Get summery of a jpeg file

2007-01-16 Thread Mumia W.
On 01/16/2007 10:18 PM, Lawrence Statton XE2/N1GAK wrote: Omega 1911 wrote in part: Did YOU assume that the OP knew about CPAN. I know when I had my first interest in Perl, I had NO IDEA of who or what CPAN was, let alone that it existed Since the OPs question included, "Is there a cpan mo

Re: Get summery of a jpeg file

2007-01-16 Thread Lawrence Statton XE2/N1GAK
Omega 1911 wrote in part: >Did YOU assume that the OP knew about CPAN. I know when I had my first >interest in Perl, I had NO IDEA of who or what CPAN was, let alone that it >existed Since the OPs question included, "Is there a cpan module that can do this?" I think it is not unfair to assume

Re: any way to redirect output from a .pl script to a log file

2007-01-16 Thread Jason Roth
Hi Janeen, To redirect STDOUT and STDERR, simply open them for writing with whatever file name you want to log to. For example #!/usr/bin/perl print "I'm written to the consonle\n"; open STDOUT, '>', 'log.txt'; print "I'm written to a log file\n"; Hope that helps. -Jason On 1/16/07, Janeen <

any way to redirect output from a .pl script to a log file

2007-01-16 Thread Janeen
Hello All: Is there a way to re-direct the output of a perl script to a log file, from within the perl script? I'm looking for the perl equivalent of the following: { command 1 command 2 command 3 } 2>> ${LOG} 1>&2 which would redirect anything written to STDOUT and STDERR, by comm

Re: Hash variable is not imported?? (Re: Storing File Handles for writing)

2007-01-16 Thread Michael Alipio
Hi John! - Original Message > From: John W. Krahn <[EMAIL PROTECTED]> > To: Perl Beginners > Sent: Tuesday, January 16, 2007 8:15:36 AM > Subject: Re: Hash variable is not imported?? (Re: Storing File Handles for > writing) > > > > open( LOGFILE, '<', $logfile ) or die "Can't open $l

Re: Get summery of a jpeg file

2007-01-16 Thread Omega -1911
Before you asked us, you CERTAINLY did a search of CPAN for JPEG and Info, right? How did Image::MetaData::JPEG fail to meet your needs? It's huge, it's complicated, and the documentation is hard to read, but Image Magick (which comes with perl bindings) can do anything with an image that can

Re: CPAN installs

2007-01-16 Thread Kevin Viel
Wiggins d'Anconia wrote: Kevin Viel wrote: I am attempting to install modules on a Solaris v10 computer for which I do not have root privileges. I see in MyConfig.pm that the build directory is local: 'build_dir' => q[/home/kviel/.cpan/build] Where does it install the (built) module? Than

$[ (was: Re: Converting to capital only one word in a line)

2007-01-16 Thread Dr.Ruud
"Jay Savage" schreef: >> There are, however, >> modules that modify all sorts of internal variables and symbol tables >> to enhance efficiency and work magic, and there is always a slight >> chance that someone, somewhere has messed with $[ and not told you >> about it. If they have, you'll end wi

Re: Hash variable is not imported?? (Re: Storing File Handles for writing)

2007-01-16 Thread Tom Phoenix
On 1/16/07, Michael Alipio <[EMAIL PROTECTED]> wrote: Variable "$clientdevice" is not imported at extractdevice.pl line 23. Since you were good enough to "use strict" (thank you!) Perl is pointing out that you never declared any $clientdevice variable before using it: open FH, '>>', $cl

Re: Hash variable is not imported?? (Re: Storing File Handles for writing)

2007-01-16 Thread John W. Krahn
Michael Alipio wrote: > Hi Mumia, It's John but hello anyway. > I think this one is closer to my goal. > > #!/usr/local/bin/perl > use warnings; > use strict; > > my $logfile='fortilog'; > my $devicefile='deviceid'; > our %clientdevice; > > open DEVICES, '<', $devicefile or die "Can't open $de

Re: Mail Attachment

2007-01-16 Thread JupiterHost.Net
Lawrence Statton XE2/N1GAK wrote: First -- your porgram is nowhere NEAR complete ... I see nowhere that $to_address, $from_address, etc are populated. Read the posting guidelines and try again. That being said, there are some glaring deficiencies that can be pointed out even without the compl

Hash variable is not imported?? (Re: Storing File Handles for writing)

2007-01-16 Thread Michael Alipio
Hi Mumia, I think this one is closer to my goal. #!/usr/local/bin/perl use warnings; use strict; my $logfile='fortilog'; my $devicefile='deviceid'; our %clientdevice; open DEVICES, '<', $devicefile or die "Can't open $devicefile $!"; while (){ (my $client) = $_ =~ /^(\S+\s+)/; (my $device)

Re: Get summery of a jpeg file

2007-01-16 Thread Ovid
--- "Gallagher, Tim F (NE)" <[EMAIL PROTECTED]> wrote: > A friend asked me to write a program for a WIN32 OS. When this > person's > camera takes a picture it populates the file summery with information > (right click on the file, go to the summary tab). One field that I > need > to get is cal

Re: Get summery of a jpeg file

2007-01-16 Thread Lawrence Statton XE2/N1GAK
> > A friend asked me to write a program for a WIN32 OS. When this person's > camera takes a picture it populates the file summery with information > (right click on the file, go to the summary tab). One field that I need > to get is called "Date Picture Taken". I then need to rename the > pic

Get summery of a jpeg file

2007-01-16 Thread Gallagher, Tim F \(NE\)
A friend asked me to write a program for a WIN32 OS. When this person's camera takes a picture it populates the file summery with information (right click on the file, go to the summary tab). One field that I need to get is called "Date Picture Taken". I then need to rename the pictures with s

Re: Mail Attachment

2007-01-16 Thread Lawrence Statton XE2/N1GAK
First -- your porgram is nowhere NEAR complete ... I see nowhere that $to_address, $from_address, etc are populated. Read the posting guidelines and try again. That being said, there are some glaring deficiencies that can be pointed out even without the complete program. > > my $picture=PATH O

Mail Attachment

2007-01-16 Thread Anish Kumar K.
Hi I am trying you to use this piece of code to send mail frm the HTML form. But I am not getting any mail as well as no error message. I am using sendmail to send the attachement. Any help is nice my $picture=PATH OBTAINED FROM THE HTML FORM for example; c:/a.jpg my $sendmailpath="/usr/sbin

Re: Storing filehandles(for writing) in hashes doesn't work (Re: whilereach my $variable () )

2007-01-16 Thread Mumia W.
On 01/16/2007 04:02 AM, Michael Alipio wrote: - Original Message From: Mumia W. <[EMAIL PROTECTED]> To: Beginners List Sent: Tuesday, January 16, 2007 3:13:38 PM Subject: Re: Storing filehandles(for writing) in hashes doesn't work (Re: whilereach my $variable () ) On 01/15/2007 11:21

InterOperate between a cluster and a web server

2007-01-16 Thread I BioKid
Dear All, Currently we are developing an Integrated Web Server with a dedicated cluster to support the server. I need help to set up a web application that can manage the web server and our cluster. For example if the user is submitting a huge set of data to do some processing , the program sh

Re: Storing filehandles(for writing) in hashes doesn't work (Re: whilereach my $variable () )

2007-01-16 Thread Michael Alipio
Hi, Ok, here's my code: my $logfile='firewalllog'; my $devicefile='deviceid'; our %log; open DEVICES, '<', $devicefile or die "Can't open $devicefile $!"; while (my $device ){ ($device) = $device =~ /(\S+)$/; open (my $fh, '>', $device.".log") or die "Can't write to $device.".log": $!";

Re: Storing filehandles(for writing) in hashes doesn't work (Re: whilereach my $variable () )

2007-01-16 Thread Mumia W.
On 01/15/2007 11:21 PM, Michael Alipio wrote: Hi, Ok, seems like a "pet logs" is not a good example.:-) Let me revise my story: I have a logfile which contains different clients firewall's logs. Let's say the log file is: "firewall.log" Now each line in the logfile has a $deviceid string tha