01-03-2012, 02:49 AM
(12-31-2011, 08:04 PM)papershark Wrote:(12-30-2011, 08:46 PM)steinm Wrote:(08-03-2010, 04:38 AM)hoedlmoser Wrote: I'd like to have the possibility to upload my just scanned documents (as pdf) automatically to the DMS.
means, just calling a certain function of letodms out of a eg bash-script which is run by cron.
do you see any possibility to just implement such a function? or just give me please a hint, which function of letodms to call to just upload a file.
gre3tings, Klaus
It is already there. The utils folder contains a script adddoc.php.
Uwe
Hi all,
thanks for that hint. I have found a script called letodms-addoc in the utils folder.
Trying to call that script results in following:
jupiter # php /var/www/htdocs/leto/utils/letodms-adddoc -f ./20111230_144537.pdf
Content-type: text/html
X-Powered-By: PHP/5.0.4
/usr/bin/php -f /usr/share/letodms/utils/adddoc.php -- $*
jupiter #
No real error message but in fact noting is performed. Any ideas?
letodms-adddoc is a shell script. Just have a look at it and adddoc.php to get an idea how it works.
Uwe