Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
iwattrib not working for some attributes
mohitarora
Hi
i m trying iwattrib on some attributes.
it is working fir name, size etc.
but not working for branch,area,currdirectory
it is showing something like this
0x000021000000000000007328
How can i get the exact values
plz help
Find more posts tagged with
Comments
Adam Stoller
Please indicate what version of TeamSite (including SP and/or patches) and on what platform/OS
Please show the complete command line you are trying to use - so we can try to replicate what you are seeing and/or show you how to modify it to get what you want.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
mohitarora
Hi
i am using Teamsite 6.5 and follows the complete command that i am using in order to get the value of attributes.
e.g for area
/iw-home/bin/iwattrib //atlsdcg1/default/main/nextel_com/WORKAREA/Development/templatedata/promotions/promotionLanding/data/TestLanding.dcr area
but the output that i am getting is 0x000021000000000000007328
plz look into this
Thanx in advance
Adam Stoller
It appears that iwattrib is returning an objectid rather than a string value - which means that you would then need to take that objectid and use *it* as an argument to iwattrib, in your case, something like:
iwattrib -o 0x000021000000000000007328 name
However, also in your case, if you already know the full vpath to the file in question, why are you using iwattrib to try to determine the path to the file, it's branch, or workarea? You could do that trivially enough with Perl. e.g.:
my $fullvpath = "//atlsdcg1/default/main/nextel_com/WORKAREA/Development/templatedata/promotions/promotionLanding/data/TestLanding.dc";
(my $branchvpath = $fullvpath) =~ s|^(.*)/(WORKAREA|STAGING|EDITION)/.*$|$1|;
(my $workarea_name = $fullvpath) =~ s|^.*/WORKAREA/([^/]+)/.*$|$1|;
etc.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com