[Glass] Executing Topaz script from a sh file

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Wed Jan 11 10:06:03 PST 2017


Hola Bruno,

I do it this way:


$GS_HOME/bin/startTopaz $1 -l <<EOF
login
run

Transcript show: 42.

%
commit
logout

EOF



Where $1 is my stoneName.

Cheers,



On Wed, Jan 11, 2017 at 1:46 PM, BrunoBB via Glass <
glass at lists.gemtalksystems.com> 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
> 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
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170111/b289b9f2/attachment.html>


More information about the Glass mailing list