Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Problem running grouper shell script

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Problem running grouper shell script


Chronological Thread 
  • From: "Waldbieser, Carl" <>
  • To:
  • Cc:
  • Subject: Re: [grouper-users] Problem running grouper shell script
  • Date: Tue, 11 Aug 2015 16:20:43 -0400 (EDT)


You might want to try something like "Shell Wrappers for Grouper" [1].
The stock GSH syntax is pretty terse.
If you try your commands out in an interactive shell, that should help you
determine where the problem lies.

Thanks,
Carl Waldbieser
ITS Systems Programmer
Lafayette College

[1] https://github.com/wgthom/groovysh4grouper

----- Original Message -----
From:

To:

Sent: Tuesday, August 11, 2015 4:06:53 PM
Subject: [grouper-users] Problem running grouper shell script

Hello Grouper Users,

I am new to Grouper and I have task to add new stems, groups, roles and
permissions. When I try to run the following grouper shell script it failing
with following message. I really appreciate if you anyone can help me or
provide any assistance resolving this issue.

Command I issue to run grouper shell
$GROUPER_HOME/webapps/grouperUi/WEB-INF/bin/./gsh.sh <complete path to gsh
file>

Can .sh file reside anywhere in the computer? or should be in a specific
location?

Below are the contents in the .sh file

grouperSession = GrouperSession.startRootSession();
addStem("ucla:hierarchy:medicine:surgery", “cedars”, “Cedars”);

addStem("ucla:hierarchy:medicine:surgery:cedars", "appointed", "Academic
Appointees”);
addGroup("ucla:hierarchy:medicine:surgery:cedars:appointed", "home", "Home");
addGroup("ucla:hierarchy:medicine:surgery:cedars:appointed", "additional",
"Additional");
addGroup("ucla:hierarchy:medicine:surgery:cedars:appointed",
"all-academic-appointees", "All Academic Appointees");

addMember("ucla:hierarchy:medicine:surgery:cedars:appointed:all-academic-appoi
ntees", "ucla:hierarchy:medicine:surgery:cedars:appointed:home");
addMember("ucla:hierarchy:medicine:surgery:cedars:appointed:all-academic-appoi
ntees", "ucla:hierarchy:medicine:surgery:cedars:appointed:additional");
addMember("ucla:hierarchy:medicine:surgery:all-academic-appointees",
"ucla:hierarchy:medicine:surgery:cedars:appointed:all-academic-appointees");


addStem("ucla:hierarchy:medicine:surgery:cedars", "prospect", "Prospective
Candidates for Appointment");
addGroup("ucla:hierarchy:medicine:surgery:cedars:prospect", "home", "Home");
addGroup("ucla:hierarchy:medicine:surgery:cedars:prospect", "additional",
"Additional");

addGroup("ucla:hierarchy:medicine:surgery:cedars", "archive", "Archive");


ERROR on execution

edu.internet2.middleware.grouper.GrouperSession:
1d1c0a1895b84a6aafe010fa3d6c52d3,'GrouperSystem','application'
// Error: unable to evaluate command: Sourced file: inline evaluation of:
``addStem("ucla:hierarchy:medicine:surgery", “cedars”, “Cedars”);''
Token Parsing Error: Lexical error at line 1, column 44. Encountered:
"\u201c" (8220), after : ""
// Error: unable to evaluate command: Sourced file: inline evaluation of:
``addStem("ucla:hierarchy:medicine:surgery:cedars", "appointed", "Academic
Appoint . . . '' Token Parsing Error: Lexical error at line 1, column 87.
Encountered: <EOF> after : "\"Academic Appointees\u201d);"
// Error: Can't find stem by name:
'ucla:hierarchy:medicine:surgery:cedars:appointed'
// Error: Can't find stem by name:
'ucla:hierarchy:medicine:surgery:cedars:appointed'
// Error: Can't find stem by name:
'ucla:hierarchy:medicine:surgery:cedars:appointed'
// Error: Cannot find group with name:
'ucla:hierarchy:medicine:surgery:cedars:appointed:all-academic-appointees'
false
// Error: Cannot find group with name:
'ucla:hierarchy:medicine:surgery:cedars:appointed:all-academic-appointees'
false
// Error: Cannot find group with name:
'ucla:hierarchy:medicine:surgery:all-academic-appointees'
false
// Error: Can't find stem by name: 'ucla:hierarchy:medicine:surgery:cedars'
// Error: Can't find stem by name:
'ucla:hierarchy:medicine:surgery:cedars:prospect'
// Error: Can't find stem by name:
'ucla:hierarchy:medicine:surgery:cedars:prospect'
// Error: Can't find stem by name: 'ucla:hierarchy:medicine:surgery:cedars'



Archive powered by MHonArc 2.6.16.

Top of Page