View Single Post
Old 03-31-2012, 07:05 AM   #3582
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
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!
Analogus is offline   Reply With Quote