Hi
Maybe someone can help me.
I try to manipulate STYLE.CSS on the fly with actions in PRS+.
I do this like that with
Core.shell.exec:
Code:
Core.shell.exec('echo "head, html, body, tittle, p, div, ul, dl {line-height:100% !important}" >> /Data/database/system/PRSPlus/epub/style.css')
This functions well. But when I try to use commands with ' ' inside Core.shell.exec this does not work:
Code:
Core.shell.exec('whatever command 'text' whatever command')
For example:
Code:
Core.shell.exec('cat /Data/database/system/PRSPlus/epub/style.css | \ sed -e '/text to search/d' > /Data/database/system/PRSPlus/epub/style.css');
Reason is clear - the ' ' inside the command interrupt the outer ' '.
Any solution?
Thank you!