Menu

Adddoc.php

2016-09-12
2016-09-22
  • Jo Whitehouse

    Jo Whitehouse - 2016-09-12

    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!

     
  • Uwe Steinmann

    Uwe Steinmann - 2016-09-13

    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.

     
  • Jo Whitehouse

    Jo Whitehouse - 2016-09-13

    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!

     
  • Rach

    Rach - 2016-09-22

    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

     

Log in to post a comment.

Auth0 Logo