Doing time/date calculations

2003-06-22 Thread Scot Robnett
How would one go about determining if something is 3 days old, 3 months old, 1 year old, etc., based on the following scenario? The date that a user subscribes to our site is stored in a MySQL database in the DATE format -mm-dd. So column 'SubscribeDate' looks like 2003-06-18, for instance.

RE: readir

2003-06-22 Thread Charles K. Clarkson
Josimar Nunes de Oliveira [EMAIL PROTECTED] wrote: : : Hello Clarkson, : Thanks for everything you explained. You're welcome. : The 'System Volume Information' is a restricted system folder : (only SYSTEM can access) in NTFS. I don't know much about win 2k. That file may be

Re: Can LWP::Simple tranfer image urls?

2003-06-22 Thread Jerry Rocteur
Finally, some usefull stuff in Perl ;-)) On Saturday, Jun 21, 2003, at 18:52 Europe/Brussels, Randal L. Schwartz wrote: The code for 2001, 2002, and 2003 is in the thread starting at: http://www.perlmonks.org/index.pl?node_id=147449 -- To unsubscribe, e-mail: [EMAIL

RE: File::Find

2003-06-22 Thread Ronen Kfir
Hi, This is a production script, not homework! The follow is a script I wrote designed to send mail messages with predefined attachments, as an alerts coming from Big Brother system. That is how it works: As soon as mail arrives from Big Brother, files named down up generated by a .procmailrc

Re: Writing Platform Independant Perl Code

2003-06-22 Thread Jenda Krynicky
From: R. Joseph Newton [EMAIL PROTECTED] perl_beginner wrote: While the code works fine with Linux, crumbles on XP saying Can't find string terminator EOM anywhere before EOF at recordProxy.pl line 317. Line 317 in my code is: $response= EOM; To start with, you should lose the

Re: perl question

2003-06-22 Thread Pavle Lukic
On Sat, Jun 21, 2003 at 12:40 PM -0700, Ioana Cozmuta wrote: I do understand the problem, however I do not know how to put it in a perl script. For example, in C this could be solved using pointers. As I mentioned in my first e-mail, the data are tab delimited. If between the tabs there is no

Re: perl question

2003-06-22 Thread Pavle Lukic
On Sat, Jun 21, 2003 at 12:40 PM -0700, Ioana Cozmuta wrote: I do understand the problem, however I do not know how to put it in a perl script. For example, in C this could be solved using pointers. As I mentioned in my first e-mail, the data are tab delimited. If between the tabs there is no

RE: Exchange Server Mailbox format

2003-06-22 Thread Tim Johnson
I don't think Microsoft will ever give out the exact format that their database is in for parsing, for obvious reasons. If you want to parse the contents of mailboxes, I would recommend checking out the Win32::Exchange module and a good long research session at www.microsoft.com/msdn. You can

Re: How to retrieve a MAC address

2003-06-22 Thread Ashish Srivastava
Try following code on 'Linux' #!/usr/bin/perl -wuse strict;my @lines = `ifconfig`;my $fline = shift @lines;chomp $fline;$fline =~ /HWaddr\s+(.*)$/;print "$1\n"; cheers Ashish ---Original Message--- From: [EMAIL PROTECTED] Date: Thursday, June 19, 2003 09:50:54 PM To: [EMAIL

Change of mail id from vemav@anz.com to venkatsb@anz.com

2003-06-22 Thread Vema, Venkata
Can youChange my mail id from [EMAIL PROTECTED] to [EMAIL PROTECTED] -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Mon 23/06/2003 2:08 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: How to retrieve a MAC address

RE: How to retrieve a MAC address

2003-06-22 Thread Rai,Dharmender
this code would not work always as ifconfig runs in root login. -- From: Ashish Srivastava[SMTP:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 9:38 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: How to retrieve a MAC address Try