Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startTopaz script would be useful ...... #46

Closed
dalehenrich opened this issue Dec 19, 2014 · 2 comments
Closed

startTopaz script would be useful ...... #46

dalehenrich opened this issue Dec 19, 2014 · 2 comments

Comments

@dalehenrich
Copy link
Member

Suggested by Dario ... it's a good idea ... add an option for defining which topazini file to use would allow you to switch users easily .... add option for scripts to run ...

@dalehenrich
Copy link
Member Author

From Mariano:

Just in case it might be useful, as part of my scripts, I have 2 scripts for "running a script with topaz". 

runTopazScript.sh   which receives a full path topaz script file:


#!/bin/bash

$QUUVE_GEMSTONE_ADDITIONS_SCRIPTS/runTopazStringScript.sh "$1" "`cat $2`"


and runTopazStringScript which does

#!/bin/bash

export upgradeDir=/opt/gemstone/product/upgrade


# Requires a Sites subfolder password as a parameter
if [ "a$1" = "a" ]; then
        echo 'Missing argument <Sites subfolder>'
        exit 1
fi

source $QUUVE_SITES_DIRECTORY/$1/gemstone/env

if [ -z "$2" ];
then
   echo "Error: no string given"
fi


# For the moment we remove the -q to topaz so that we get more info. Put back once I have solved all problems
su -m $GEMSTONE_USER -c "$GEMSTONE/bin/topaz -l -I $APPLICATION_DIR/.topazini -T200000 <<EOF

display oops
iferror where
login

$2

EOF
"


I think you can adapt those very easily with the GsDevKit...

Best, 

@dalehenrich
Copy link
Member Author

addressed in GsDevKit_home ... the os user and gemstone user issues will be addressed separately as part of GsDevKit/GsDevKit_home#26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant