[Glass] Executing Topaz script from a sh file

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Wed Jan 11 10:38:10 PST 2017


Bruno,


The $GS_HOME/bin/startTopaz takes the stone-name as the first arguments 
... the rest of the command line is passed to topaz as topaz arguments. 
I've in-lined the correction below.

Dale


On 1/11/17 8:46 AM, BrunoBB via Glass wrote:
> Dale,
>
>  From Topaz manual (page 31):
> "You can embed the topaz code within a UNIX shell script, to create a file
> that can be easily
> executed on the command line:"
> #! /bin/sh
> #set -x
> $GEMSTONE/bin/topaz -il <<EOF >>MFC.out
> set user DataCurator password swordfish gemstone gs64stone
> login
> ! run garbage collection mark/sweep
> exec SystemRepository markForCollection %
> exit
> EOF
>
> My script is as follow:
> #! /bin/sh
> #set -x
> $GS_HOME/bin/startTopaz -il <<EOF >>MFC.out
$GS_HOME/bin/startTopaz <stone-name> -il <<EOF >> MFC.out
> set user DataCurator password swordfish gemstone gs64stone
> login
> ! run garbage collection mark/sweep
> exec UserGlobals at: '#test' put: (Array with: 'bruno') %
> exit
> EOF
>
> But i get an error:
> /home/gemstone/GsDevKit_home/bin/startTopaz: illegal option -- i
> Unknown option :: startTopaz -il :: startTopaz -il
>
> What is the code to this with GsDevKit ?
>
> regards
> bruno
>
>
>
> --
> View this message in context: http://forum.world.st/Executing-Topaz-script-from-a-sh-file-tp4929340.html
> Sent from the GLASS mailing list archive at Nabble.com.
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass



More information about the Glass mailing list