How to get extended attribute to a perl variable
I'm able to set extened attribute as below
$cmd = "$IWHOME/bin/iwextattr -s TeamSite/Metadata/SEO/Description=$metaDescription \"$file\"";
$log->debug("cmd = $cmd");
$out = `$cmd`;
$log->debug("out = $out");
If I want to get, and see what value is present previously and want to manipulate based on value... So, If I can store in perl variable, I can play with it. But How to get the value into a perl variable.
Thanks, Aneel
$cmd = "$IWHOME/bin/iwextattr -s TeamSite/Metadata/SEO/Description=$metaDescription \"$file\"";
$log->debug("cmd = $cmd");
$out = `$cmd`;
$log->debug("out = $out");
If I want to get, and see what value is present previously and want to manipulate based on value... So, If I can store in perl variable, I can play with it. But How to get the value into a perl variable.
Thanks, Aneel
0
Comments
-
I knew using -g option. Actually I wanted to how to trigger this command, even for -s....
In a perl file, the command is stored in a variable $cmd and assigned $out..
So,, when they assign $out = $cmd means command is executed.
Yeah, its a silly Q.0 -
Yeah Got it. thanks,0
-
Hi,
You can try the below one
I:/iw-home/bin/iwextattr -s adminPath=Y:/Need to have path till admin/admin/ Y:/Need to put path of where your datacapture is present/datacapture.cfg
I:/iw-home/bin/iwextattr -s SetMetadata=true Y:/Need to put path of where your datacapture is present/datacapture.cfg
run the above cmd and this will set your metadata for the template0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.