RE: Backing Up Files to a Remote Server

2005-12-14 Thread Dwalu Z. Khasu
On Wed, 14 Dec 2005, Adedayo Adeyeye wrote: =>Thanks Dwalu. => =>Still didn't work. However, I removed use File::stat and everything works =>fine now. => =>Kind regards => =>Dayo => Apologies Dayo. I took a quick glance and missed the 'use File::stat'. Here's the quick explanation of what was h

RE: Backing Up Files to a Remote Server

2005-12-14 Thread Dwalu Z. Khasu
On Wed, 14 Dec 2005, Adedayo Adeyeye wrote: =>Thanks Charles. => =>The copy parts works great. However, I still can't get any information on =>the file. No values are being returned. I did the following: => =>use File::stat; => =>($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime

RE: Backing Up Files to a Remote Server

2005-12-14 Thread Charles K. Clarkson
Adedayo Adeyeye wrote: : Still didn't work. However, I removed use File::stat and everything : works fine now. IIRC, File::stat is an OO version of stat(). I believe it forces stat() to return a hash or a blessed object, not an array. : =>print "$atime"; : =>print

RE: Backing Up Files to a Remote Server

2005-12-14 Thread Adedayo Adeyeye
Thanks Dwalu. Still didn't work. However, I removed use File::stat and everything works fine now. Kind regards Dayo -Original Message- From: Dwalu Z. Khasu [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 8:08 PM To: Adedayo Adeyeye Cc: 'Charles K. Clarkson'; 'Perl Beginne

RE: Backing Up Files to a Remote Server

2005-12-14 Thread Adedayo Adeyeye
Thanks Charles. The copy parts works great. However, I still can't get any information on the file. No values are being returned. I did the following: use File::stat; ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks)=stat("Perfect.xls"); print "$at

RE: Backing Up Files to a Remote Server

2005-12-14 Thread Charles K. Clarkson
Adedayo Adeyeye wrote: : Thanks. : : To get the statistics of a file on my windows box, I ran the : following script: : : : open FILE1, "Perfect.xls" or die "Cannot open file: $!"; : : my @stuff = stat "FILE1"; : : print "@stuff"; : : Unfortunately, I don't know w

Re: Backing Up Files to a Remote Server

2005-12-14 Thread Adedayo Adeyeye
Thanks.   To get the statistics of a file on my windows box, I ran the following script:     open FILE1, "Perfect.xls" or die "Cannot open file: $!";   my @stuff = stat "FILE1";   print "@stuff";       Unfortunately, I don’t know why this never returned any values into my @stuf

Re: Backing Up Files to a Remote Server

2005-12-14 Thread Chris Devers
On Wed, 14 Dec 2005, Adedayo Adeyeye wrote: > Please can someone please help me with a script that can basically do two > things: > > 1.check that a file was created today > 2.backup that file to a remote server > > This is to be done on a windows platform. I'll schedule this script to r

Backing Up Files to a Remote Server

2005-12-14 Thread Adedayo Adeyeye
Hello,   Please can someone please help me with a script that can basically do two things:   check that a file was created today backup that file to a remote server   This is to be done on a windows platform. I’ll schedule this script to run at the end of everyday.   K