Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Creation Date & Modified Date
rohitspathak123
Hi
Using TS 6.5 Sol 5.8
There is a requirment to get creation date & modified date of files in teamsite.
I am using following command to get this
[HTML]
iwattrib crdate
iwattrib moddate
[/HTML]
But it is given me the same result. Has anyone tried this before.
To validate this , I uploaded a new file to CC. Ran the 'crdate' command.
Then modified the same file in CC. Ran the 'crdate' & 'moddate' command but it is giving the same result.
Any clue. Or any other alternative which I can use.
~ rohit
Find more posts tagged with
Comments
prem_pratick
I dont Understand my self why you are getting this . I tried the same and I got the correct output
bash-2.03# ./iwattrib /default/main/*******WORKAREA/working/templatedata/careers/generic_article/data/testing_VF_performance.dcr moddate
Sat Nov 25 18:30:41 2006
bash-2.03#
bash-2.03#
./iwattrib /default/main/bp_internet/*******WORKAREA/working/templatedata/careers/generic_article/data/testing_VF_performance.dcr crdate
Thu Mar 4 17:43:29 2004
Prem Pratick.
jkm
This works fine for me as well .... just tried below
/iw-home/bin/iwattrib /default/main/****/WORKAREA/work/home.html crdate
Wed Aug 2 18:49:44 2006
/iw-home/bin/iwattrib /default/main/****/WORKAREA/work/home.html moddate
Fri Dec 15 19:27:42 2006
did you check the mod dat in unix? It has changed or not ?
TS6.5sp2 +solaris 9
rohitspathak123
Problem solved !
Yes you guys are right.
Actually the problem was that I was using .txt file as input to iwattrib command.
I edited the file using NOTEPAD application. NOTEPAD always creates a NEW FILE whenver you edit a file.
So because of this I was getting creation date & modified date same.
Reply to one of my posts from GHOTI
--------------------------------------------------------------------
If the application used for editing the file replaces the file in the workarea with a new file (moves the original file aside, writes the modified version in place, removes the original file)
---------------------------------------------------------------
Then I tried editing the DCR & running the same iwattrib command & this time I got the proper result.
Thanks everyone !
~ rohit