grouper-users - [grouper-users] GSH (new groovy based) ... passing in command line parameters?
Subject: Grouper Users - Open Discussion List
List archive
- From: "Black, Carey M." <>
- To: "" <>
- Subject: [grouper-users] GSH (new groovy based) ... passing in command line parameters?
- Date: Wed, 2 May 2018 03:30:24 +0000
- Accept-language: en-US
- Authentication-results: spf=pass (sender IP is 128.146.138.11) smtp.mailfrom=osu.edu; internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=pass action=none header.from=osu.edu;
- Ironport-phdr: 9a23:iR0zYxzxBzA/DsPXCy+O+j09IxM/srCxBDY+r6Qd2+IXIJqq85mqBkHD//Il1AaPAd2Araocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HdbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRHolikJKiI5/m/UhMxxkK1Vrx2uqgdjw47NZIyZKOZycr/Dcd4cWGFPXtxRVytEAo6kYYcCEu4BMvxEoIn+v1cFsAWzChO2BOzxyj5Dm3j40bc03+88FgzJxwggEMgSv3TXttn5KbkeXO6uwanP1jXDcula1ing54jVax0sp+yHU7FoccfJ1EUjCwzIgk+fpIHnJT+Y2OoAv3KG4+Z9Wu+jk2wqpg5rrjSyycoglpPFi4wLxlze8Sh13p45JdOmR0N4fdKpFZ5duiGGOIRqTMMvRn9ktSk7x7IbvJO2cygHxZYpyhPad/OIaJOH7QjlWe2MOzl3nmhld6i6hxuq8Uiv1On8Vs6s3VhSsidLlcXAum0U2xHO8saKROJx/kC61jmRzQzT7fxEIVwvmqrcNp4hxKM/moALsUTZGS/2hFv5g7OKdkUl/eio7f7rYrL7pp+AM490jQb+Mqc0lsOjBuQ4NxACX2md+euiyL3u5VD1TKlFg/EsnaTUsorWKMoVq6KjHgNZz4ku5w66Dzi80dQYmXcHLEhCeBKCl4XmIFXOL+rkAve8mVigjSlnyv7dM73mGZXNM2LPn6n8crZg80Jc0hY8zchD55JIDbEMOP3zWlX2tNzFFh82LRa0z//6CNVmyIweQ3mPD7SdMKPTql+I+vkvL/eWaI8Uvjb9N+Yq5+TojXAnhV8RY7Ol0oUKZ3ClTbxaJBDTbmDrn88MCyIXpQckV8TrjkGPSzheeyz0Uq4hrHlvB5ihEJ/OXMWwm7Gbxw+6GIFbfGZLFgrKHHv1IdaqQfAJPWi4JsZqkXhMfrG7Rp5p8Ffk/Fvwz7NsLayNoHYwson+ktV5+ruAxlkJ6TVoApHFgCm2RGZukzZQSg==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
All,
I have started to write a few GSH scripts and I am not clear on how I can
pass in a "command line parameter" to the script.
Specifically I am looking for "configuration variables" that would
drive what the script does for this run.
Should I look at using JVM properties?
./gsh appears to have a place holder for GSH_JVMARGS, but nothing
setting it in that script... is that the best way (only way?) to do this task?
I did look at GrouperShellWrapper and GrouperShell... which gave me some
hope... but this did not work out... and it is not clear to me why it did not
work...
REF: ( a simple one line script I was trying to test with) testCLI.gsh
System.out.println('x='+x)
Command line:
./gsh.sh -runarg 'x=3\n:load testCLI.gsh\n'
OR
./gsh.sh -runarg '"x=3\n:load testCLI.gsh\n"'
Produced:
"
groovy:000> :load /...../conf/groovysh.profile
groovy:000> "x=3
groovy:001> :load
Command ':load' requires at least one argument
groovy:001> :exit
"
I am really not clear why the testCLI.gsh part of the runarg string
did not make it. (???)
Any clue-bricks out there?
--
Carey Matthew
- [grouper-users] GSH (new groovy based) ... passing in command line parameters?, Black, Carey M., 05/02/2018
- <Possible follow-up(s)>
- Re: [grouper-users] GSH (new groovy based) ... passing in command line parameters?, Shilen Patel, 05/02/2018
- RE: [grouper-users] GSH (new groovy based) ... passing in command line parameters?, Black, Carey M., 05/02/2018
- Re: [grouper-users] GSH (new groovy based) ... passing in command line parameters?, Shilen Patel, 05/02/2018
- RE: [grouper-users] GSH (new groovy based) ... passing in command line parameters?, Black, Carey M., 05/02/2018
Archive powered by MHonArc 2.6.19.