- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Date check of file on NT
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 05:03 AM
02-14-2001 05:03 AM
Date check of file on NT
I need to check the date that a file was created on a NT server and compare it to currant date then ftp it to a UNIX server if it is currant.
Thanks,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 05:11 AM
02-14-2001 05:11 AM
Re: Date check of file on NT
Look at the man pages for 'ftp'. Instead of doing a "get", use "newer". This 'get' the file only if the modification time of the remote file is more recent that the file on the current system. If the file does not exist on the current system, then the remote file is considered newer.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 08:51 AM
02-14-2001 08:51 AM
Re: Date check of file on NT
The ?newer? option in ftp works fine when getting the file for the first time from the NT server however on the second try with a newer file (testfile.txt) in place I get an error message.
500 ?MDTM testfile.txt? : command not understood
Any other suggestions will be appreciated.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 09:39 AM
02-14-2001 09:39 AM
Re: Date check of file on NT
Another alternative is use one of the ftp based public domain mirroring software packages (mirror, rsync, etc) to do it, but it requires that you setup the NT box as a FTP server which can be somewhat shakey situation from a security point of view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 09:45 AM
02-14-2001 09:45 AM
Re: Date check of file on NT
Well so much for NT ;-)
This works fine in UNIX but I regret that I can't make it work from NT either. I get the same error as you do.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 09:52 AM
02-14-2001 09:52 AM
Re: Date check of file on NT
Thanks for trying.
Tim,
I'll make the suggestion but since I'm a contractor I can't just do it.
Thanks,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 02:30 PM
02-15-2001 02:30 PM
Re: Date check of file on NT
Jim Trice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2001 02:59 AM
02-16-2001 02:59 AM
Re: Date check of file on NT
Thank you for your comments but what we have decided to do is after doing a get from the NT server we are going to rename the file. So if the file is there tomorrow we do a get and rename again and so on. We thing this will server our purpose.
Thanks again,
Jim