echo current date while in ftp

From: Andy Cohen <Andy.Cohen_at_cognex.com>
Date: Fri, 30 Nov 2001 16:05:22 -0500

Hi,

I have a ksh script that invokes ftp and sends many large files. After each
file, while still in ftp, the script issues the following command:

        !echo ftp finished third disk at `date`

and then when it finishes and exits ftp it issues:

        echo finished ftp at `date`

What is strange is that the `date` that is echo'ed while in ftp is always
the same even though the whole process takes several hours. Here's a
snippet from the log:


starting ftp at Fri Nov 30 00:15:10 EST 2001 {this is echo'ed right before
invoking ftp}
...
ftp start first disk at Fri Nov 30 00:15:10 EST 2001 {this is echo'ed from
within ftp right before the first 'mput *' command}
...
ftp start second disk at Fri Nov 30 00:15:10 EST 2001 {this is echo'ed from
within ftp after transferring several dozen mb for about 10 different files
and right before the next 'mput *' command}
...
ftp finished third disk at Fri Nov 30 00:15:10 EST 2001 {this echo'ed from
within ftp right before exiting -- `date` still 00:15:10 }
1382317813 bytes sent in 1.1e+04 seconds (1.2e+02 Kbytes/s)
221 Goodbye.
finished ftp at Fri Nov 30 04:22:31 EST 2001 {this is echo'ed right after
exiting ftp `date` is now 04:22:31 -- 4+ hours after starting }


Is this expected behavior?

Thanks alot!
Andy



============================
Andy Cohen
Database Systems Administrator
Cognex Corporation
1 Vision Drive
Natick, MA 01760
----------------------------------------------
e-mail: andy.cohen_at_cognex.com
 voice: 508-650-3079
  cell: 617-470-0034
   fax: 508-650-3337
.........................................................
Happiness is not getting what you want,
it's wanting what you've got........
The best things in life....aren't things
Received on Fri Nov 30 2001 - 21:07:28 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT