- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know the modification seconds of a file...
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
06-13-2004 09:54 PM
06-13-2004 09:54 PM
Under HP-UX 11.00, i'm trying to find the last modification time of a file, with the precision of the second.
I know that "ls -l" give that time, but i just can read hour/minute : i don't have any information about second. I think that HP-UX manage file with seconds, but don't know how to display this information.
Is there any solution or tool to do that ?
Thank you in advance.
Olivier.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2004 10:19 PM
06-13-2004 10:19 PM
Solutionhttp://hpux.connect.org.uk/hppd/hpux/Gnu/coreutils-5.2.0/
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2004 11:40 PM
06-13-2004 11:40 PM
Re: How to know the modification seconds of a file ?
#!/usr/bin/perl
#
$filename=@ARGV[0];
(($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blk
size,$blocks) = lstat($filename));
printf("atime is %d\n",$atime);
printf("mtime is %d\n",$mtime);
printf("ctime is %d\n",$ctime);
printf("Name is %s\n",$filename);
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 01:21 AM
06-16-2004 01:21 AM
Re: How to know the modification seconds of a file ?
And thank you, harry : your perl script shows effectively the time in second from 1 jan 1970. We just have to convert it to the real time ...
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 05:55 AM
09-17-2004 05:55 AM
Re: How to know the modification seconds of a file ?
Olivier.