Operating System - HP-UX
1752788 Members
6178 Online
108789 Solutions
New Discussion юеВ

Re: Changing mtime of a file

 
SOLVED
Go to solution
Salman Ahmed Qureshi
Frequent Advisor

Changing mtime of a file

Hi, I am using hp unix 11.11 on "HP-UX mesprim B.11.11 U 9000/800 3680449747 unlimited-user license" server

I performed "swverify B3394BA" and in the resulting log, i saw that it was complaining that files /usr/old/usr/bin/bfs and /usr/sbin/cuegetty have "0" size. I coppied (ftp) these files from another same type of server and then again issued "swverify B3394BA" and now i see following

ERROR: File "/usr/old/usr/bin/bfs" should have mtime "974188800" but
the actual mtime is "1248395913".
ERROR: File "/usr/sbin/cuegetty" should have mtime "974188800" but
the actual mtime is "1248395946".

I tried to change mtime using following command but gain error. Please help

# touch -t 974188800 "/usr/old/usr/bin/bfs
date: bad conversion


Thanks

Salman
2 REPLIES 2
Steven Schweda
Honored Contributor
Solution

Re: Changing mtime of a file

"man touch" should explain the time format
which "touch" uses, which is, apparently, not
what swverify reports.

> I coppied (ftp) these files [...]

You might try using "tar" to bundle these
files, and their attributes, into a "tar"
archive, then transfer that, and then extract
the files from that.
Salman Ahmed Qureshi
Frequent Advisor

Re: Changing mtime of a file

Thanks
TARing solved the issue :)

Salman