|
Hi Lim,
You should be able to do a get -P. For example:
get -P U_USMO_EEDATAFILE.txt /tmp/prpayin.txt
The -P switch tells it to copy the permissions, access time and
modification time from the remote system to the local one. So after a
get -P, your IFS file should have the same modification time as theget
remote one you're fetching.
You can then use the stat() API, or the QShell attr utility, etc, to
the date/time when the file was modified into a program, if needed.OpenSSL.
Good luck
Lim Hock-Chai wrote:
Is there a way to retain the last modified date of the file on the
server that I'm downloading from? Note: I'm using sftp thru
Below is my sftp script:
cd /Exports
get U_USMO_EEDATAFILE.txt /tmp/prpayin.txt
exit
thanks
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.