Re: [Tiki-devel] Calling Tiki from the command line

Torsten Fabricius via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi!

You want to import text to the database, so I suppose you have to use a 
command line script with mysql or you convert the moin text into a csv 
with Tiki database page table structure to import from there.

Imho you need to consider the mapping of page related meta content like 
category (ID) or creators user name (ID) etcetera.
If you need to import the meta content depends on the amount (how many 
categories, how many users, etcetera) so maybe it will be easier to 
create that manually, if not a lot of conten and if only a one time job 
for your self.

So I see either import to mysql directly or convert moin-pages.txt to 
tiki-pages.csv or tiki-pages-table.sql and then import.

For your task a command line browser would be likely not sufficient - I 
just mention as another general option to access Tiki from the command 
line ;-)

Hth,
Torsten

Am 10.02.22 um 20:23 schrieb Volker Wysk:
> Hi!
>
> I'm making progress with my MoinMoin to Tiki migration program, which I call
> "moin2tiki".
>
> I've read and commented most of the lib/wiki/xmllib.php script, which
> implements most of the "XML Import-Export" feature. See the page "XML-Wiki-
> Import-Export" on doc.tiki.org. I've come to the conclusion that I can't use
> this feature.
>
> So my program is supposed to work like this: It parses and converts the
> MoinMoin pages to Tiki. (Those are stored on disk.) The pages along with
> symlinks to the attachments are stored in a directory structure.
>
> A PHP script (moin-import.php) is placed in the Tiki root directory. This
> script is called by moin2tiki. It loads the Tiki libraries and uses them to
> store the pages and attachments, which it has read from the directory
> structure, in the Tiki database.
>
> The script is to be called directly from a shell, with "sudo -u www-data php
> moin-import.php <path>" or something like that. It's *not* called by the web
> server.
>
> Now my question is this: Will this work? Can Tiki be accessed this way (by a
> PHP script that runs from a shell/from the command line)?
>
> Cheers,
> Volker
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.