11-28-2012, 01:45 AM
(11-28-2012, 12:57 AM)Daniel Wrote: What is the %s in the command?
I tried it with the following in my test file, but i don't know how to set this properly in LetoDMS (this worked too and presented me the output on the screen):
PHP Code:system ("/opt/bin/pdftotext -nopgbrk 1.pdf - | sed -e 's/ [a-zA-Z0-9.]\{1\} / /g' -e 's/[0-9.]//g'");
The %s is replaced by letodms with the path the file to index. The command is supposed to write its output to stdout.
The most simple command would be
'cat %s'
which just outputs the content of the file to stdout.
Uwe