Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Run loader job from shell script

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Run loader job from shell script


Chronological Thread 
  • From: Chris Hyzer <>
  • To: "Klug, Lawrence" <>, "" <>
  • Subject: [grouper-users] RE: Run loader job from shell script
  • Date: Tue, 28 Aug 2012 23:45:02 +0000
  • Accept-language: en-US

Can you put the GSH script in a file, and give gsh the argument of the path to the script…

 

Thanks,

chris

 

From: [mailto:] On Behalf Of Klug, Lawrence
Sent: Tuesday, August 28, 2012 5:32 PM
To:
Subject: [grouper-users] Run loader job from shell script

 

We use JAMS job scheduler at UCLA .  I’d like to run my Grouper loader job from JAMS.  Is it possible to run a multi-line GSH session from a shell script?  So far I’m getting an execution error.

 

Here is the source:

 

#!/bin/bash

 

if [ -z "$GROUPER_HOME" ] ; then

                export GROUPER_HOME='/usr/local/grouper'

fi

 

$GROUPER_HOME/bin/gsh.sh

grouperSession = GrouperSession.startRootSession();

group = GroupFinder.findByName(grouperSession, "ucla:etc:config:orgsConfig");

loaderRunOneJob(group);

 

Result:

 

Connected to server.ucla.edu on port 22

SSH-2.0-OpenSSH_4.3

JAMSAgentX Version: 4.5.48

MVPA ERROR " exec failed: /home/edjobs/.jams/job/6d/0f2391-d1b5-4e62-889f-d8fafc05cb89 "

 

Lawrence Klug

IMS Platform Development

310 825-2061

ext 52061

 




Archive powered by MHonArc 2.6.16.

Top of Page