Wednesday, February 24, 2010

[tip]Find -exec tip

Using -exec command like below, need add escape character for semicolon that separated two commands in shell

find directory/ -type d -exec chmod a+x {} \;

Feb 24, 2010 - update:
find . -maxdepth 4 -type d  -name 'g-vxworks' 2>/dev/null -print

Friday, February 5, 2010

special characters in p2 touchpoint instruction

I suffered p2 installation failed on the configure parse. Becase I try to add vm arguments for my application.
For example, I added '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8272' in the product configuration.
P2 will fail when parsing the argument, because it contains ':' and ',' that should be escaped.
It works again after replacing it to '-agentlib${#58}jdwp=transport=dt_socket${#44}server=y${#44}suspend=n${#44}address=8272'.
The more detail note could be found in p2 touchpoint wiki.
And I also opened bug to request improving it.