mass compilation

Jeff Hoffman wonicon at optusnet.com.au
Wed Nov 15 15:53:53 CST 2006


Hi

When you run a shell script it logs on as you fresh, so if you execute a 
script to set up environment variables it might not be done automatically 
you may have to execute the run of the environment variable setup script 
within your compile script.

Also watch out for temp subfiles, they may disappear between executions
you may need to consider nesting compiles

eg
quiz
use abcd
qtp
use zxcv
use dfer
......

the compile of abcd created a temp subfile, so within that quiz run you may 
have to execute the qtp compile of dfer that uses the subfile.

I do not think that you can just do a compile of all qtp then all quiz etc, 
you may have to setup a script file and plan the comp run.

Jeff



At 02:09 AM 16/11/2006, you wrote:
>Hi Vikrant,
>
>It is always best to keep the list involved – I know some unix, but I am 
>no expert – and more detailed questions like this would be answered in 
>more depth by others.
>
>I have no idea what the error is, perhaps you could delete the qtc file 
>before running the command.
>
>I suspect that if you added syntax ‘build $qtcloc/uniquefile’ to the end 
>of each source file you could preset the location of each qtc by 
>presetting variable qtcloc, but I have not actually tried this myself.
>
>The qtc file location might also be set using the procloc qtp parameter, 
>but I’m not sure and I have no documentation on that.
>
>As for output errors try adding syntax 2>>filespec.err to the command line.
>
>Regards, Joe.
>
>
>----------
>From: Vikrant Shahir [mailto:vikrant.shahir at gmail.com]
>Sent: 15 November 2006 14:05
>To: Joe Boyle
>Subject: Re: mass compilation
>
>Hi Joe,
>
>Thanks a lot ..... the commands works very well and overwrites the qtc, 
>but on UNIX command prompt it gives us one error/warning "ksh: Q:  not found".
>One more thing .....can we redirect the file name which is compliled and 
>method by which we can redirect the out put to one file, to reffer the 
>erros we are geeting while mass-complilation.
>Thanks again Joe,
>
>Regards,
>Vikrant.
>
>On 11/15/06, Joe Boyle <<mailto:atla38 at dsl.pipex.com>atla38 at dsl.pipex.com> 
>wrote:
>
>The complete command would be something like 'echo exit | qtp auto=${temp}'
>
>
>
>----------
>From: Joe Boyle [mailto:atla38 at dsl.pipex.com]
>Sent: 15 November 2006 13:34
>
>To: 'Vikrant Shahir'; '<mailto:powerh-l at lists.sowder.com> 
>powerh-l at lists.sowder.com'
>Cc: '<mailto:vinityadnik at gmail.com>vinityadnik at gmail.com'; ' 
><mailto:vamsi.coe at gmail.com>vamsi.coe at gmail.com'
>Subject: RE: mass compilation
>
>
>
>Or possibly even 'echo exit | qtp auto=abc.qts' which will auto exit qtp 
>after – probably easiest to pre delete ( or cp elsewhere ) your current q%c's.
>
>
>
>----------
>From: 
>powerh-l-bounces+atla38=<mailto:dsl.pipex.com at lists.sowder.com>dsl.pipex.com at lists.sowder.com 
>[mailto: powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com] On Behalf 
>Of Joe Boyle
>Sent: 15 November 2006 13:29
>To: 'Vikrant Shahir'; 
><mailto:powerh-l at lists.sowder.com>powerh-l at lists.sowder.com
>Cc: <mailto:vinityadnik at gmail.com>vinityadnik at gmail.com; 
><mailto:vamsi.coe at gmail.com>vamsi.coe at gmail.com
>Subject: RE: mass compilation
>
>
>
>It is pretty much what you have e.g. qtp auto=abc.qts – which will produce 
>your qtc file
>
>
>
>----------
>From: 
>powerh-l-bounces+atla38=<mailto:dsl.pipex.com at lists.sowder.com>dsl.pipex.com at lists.sowder.com 
>[mailto: powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com] On Behalf 
>Of Vikrant Shahir
>Sent: 15 November 2006 12:49
>To: <mailto:powerh-l at lists.sowder.com>powerh-l at lists.sowder.com
>Cc: <mailto:vinityadnik at gmail.com>vinityadnik at gmail.com; 
><mailto:vamsi.coe at gmail.com>vamsi.coe at gmail.com
>Subject: mass compilation
>
>
>
>Hello,
>
>
>
>I have what seems to be a trivial question, but have not been able to
>find a definite answer and your help would be greatly appreciated.
>
>
>
>
>Situation:-
>
>We generally compile PowerHouse source file in following manner to obtain 
>executable:-
>
>Q T P   (PowerHouse  8.43.D)
> > use < source.qts>
>
>but this above procedure is slow/manual and cannot be used for compiling 
>large no. of files at once.
>
>
>
>Question:-
>
>Is there any easy batch compilation method for powerhouse program?say 100 
>files at once.
>
>
>
>Trials done:-
>
>  I have written one script
>
>
>
>#!/bin/ksh
>for temp in `cat qts-file` # qts file contains list of qts programs
>do
>
>    # Need Power-House command to complile the qts program.
>
>done
>
>we know qtp auto=abc.qtc runs the qtc from UNIX prompt we need equivalent 
>command to complile the qts program from UNIX command prompt.
>
>  Regards,
>
>Vikrant Shahir.
>
>
>
>
>
>
>
>
>
>--
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l at lists.sowder.com
>Subscribe: &quot;subscribe&quot; in message body to 
>powerh-l-request at lists.sowder.com
>Unsubscribe: &quot;unsubscribe &lt;password&gt;&quot; in message body to 
>powerh-l-request at lists.sowder.com
>http://lists.sowder.com/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
>Add 'site:lists.sowder.com powerh-l' to your search terms to search the 
>list archive at Google.




More information about the powerh-l mailing list