[ic] makecat non-interactive?

cfm@maine.com cfm@maine.com
Thu, 22 Mar 2001 18:11:51 -0500

On Thu, Mar 22, 2001 at 03:01:12PM -0800, tzf@tzf.net wrote:
> Hi Folks, 
> By way of introduction, my name's Tim and I've been lurking for a while.
> I'm starting an e-commerce hosting company with a friend. I'm enthusiastic
> about Open Source, and hoping Interchange will allow us to base the
> business on an open source solution, despite some customers' insistance
> that they want to go with Brand X. 
> My question: I want to run makecat from the command line in a
> non-interactive mode. i.e. I want to specify all paramters on the command
> line, and then have makecat "just do it", sending only error messages to
> the standard output when necessary.
> I've been using something like this:

We used to have something like that with Vend.  A perl script that simply
did the typical substitutions in catalog.cfg.  It seems like most people 
use the stock construct pages.  So makecat makes sense for those.  But if 
you start with your own templates, then it is pretty easy to build a minimal
perl script that iterates a template tree into a destination tree.  That's
more or less what we do now.  Automating makecat is probably the hard way.


> makecat --serverconf=blah --servername=blahblah --demotype=construct ...etc.
> This sets the defaults correctly on the prompts for each of the paramters I
> set, but does not prevent makecat from prompting in the shell. I also tried
> enclosing the entire thing in a perl system() function, with no change in
> results. 
> I'm sorry if this is really too basic a question, I've only been writing
> perl for about 3 months now. 
> thanks! 
> tzf
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Find my contact info online at http://tzf.net/contact 
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users


Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Content management, electronic commerce, internet integration, Debian linux