I was wondering if anyone could give me a working example of adddoc.php lines? Im tearing my hair out! Aside from getting you does not seem to have a calid configuration (on a fresh install) I have no idea what to put in there.
Id like to cron that it adds files from a folder in webroot (that updates daily- but has normal folder names) into the seeddms data folder with strange names :)
Any help would be appreciated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have you run adddoc.php with parameter -h for a list of possible options? If you intent to run it in a cronjob you will have to add some shell script wrapper around it, which checks for new documents and does individual calls of adddoc.php for each document.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Example from command line:
php ./adddoc.php --config /var/www/html/conf/settings.xml -n "This is my document title" -f "/var/www/import_folder/myfile.doc"
Hope this helps,
Rachael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Guys,
I was wondering if anyone could give me a working example of adddoc.php lines? Im tearing my hair out! Aside from getting you does not seem to have a calid configuration (on a fresh install) I have no idea what to put in there.
Id like to cron that it adds files from a folder in webroot (that updates daily- but has normal folder names) into the seeddms data folder with strange names :)
Any help would be appreciated!
Have you run adddoc.php with parameter -h for a list of possible options? If you intent to run it in a cronjob you will have to add some shell script wrapper around it, which checks for new documents and does individual calls of adddoc.php for each document.
Thanks Uwe, I have looked at the options, not quite sure how to word the script was hoping for any old example I could break down.
Ill hunt around google, thanks for taking the time and may I say what a fantastic creation is seeddms!
Hi Jo,
I'm not sure if you already solved this. I've used this utility before and here is an example from the command line:
The config options are:
adddoc [--config <file>]</file> [-c <comment>]</comment> [-k <keywords>]</keywords> [-s <number>]</number> [-n <name>]</name> [-V <version>]</version> [-s <sequence>]</sequence> [-t <mimetype>]</mimetype> [-a <attribute=value>]</attribute=value> [-h] [-v] -F <folder id=""> -f <filename>\n";</filename></folder>
Example from command line:
php ./adddoc.php --config /var/www/html/conf/settings.xml -n "This is my document title" -f "/var/www/import_folder/myfile.doc"
Hope this helps,
Rachael