Rich Evans wrote: > Hi Jidanni, > > I thought I knew how to implement your idea, but I am stuck. > [fyi: I am using a WAMP 2.0 from Webdeveloper (community edition)] > > at the command prompt (in my mediawiki folder), when I type: > "php index.php > test.txt", i get a nice html dump of the page as I would > expect into the file "test.txt" > > however, when I type: > "php index.php?title=Main&action=raw > test.txt", I get an error that says, > "Could not open input file" > > this is not the behaviour I expected.
Your command has three parts: php index.php?title=Main -- Run command php with parameter 'index.php?title=Main' & --If the last command was successful (return code 0) execute the next one action=raw --Execute 'action=raw' > -- Redirect output to file test.txt -- Named test.txt Always be very careful with shell metacharacters! The query you were expecting to do was: php "index.php?title=Main&action=raw" > test.txt However note that using the command line interface you're not setting the server variables mediawiki expects so it probably still won't do what you want to. _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
