Calling jython function via shell script with wsadmin???? - Websphere

This is a discussion on Calling jython function via shell script with wsadmin???? - Websphere ; With jacl I do this: test.sh: /wsadmin.sh \ -p properties/wsadmin.properties \ -c "source jacl/print.jacl" \ -c "echo Hello Hi"\ -c '$AdminConfig save' print.jacl: proc echo {s1 s2} { print $s1 $s2 } How would I do this with jython? test.sh: ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Calling jython function via shell script with wsadmin????

  1. Calling jython function via shell script with wsadmin????

    With jacl I do this:



    test.sh:



    /wsadmin.sh \

    -p properties/wsadmin.properties \

    -c "source jacl/print.jacl" \

    -c "echo Hello Hi"\

    -c '$AdminConfig save'



    print.jacl:



    proc echo {s1 s2} {

    print $s1 $s2

    }



    How would I do this with jython?



    test.sh:

    ????



    test.py:



    def echo(s1, s2):

  2. Cool Re: Calling jython function via shell script with wsadmin????

    test.py

    def echo (s1, s2):
    print "%s %s" % (s1, s2)

    call c:\IBM\WebSphere\AppServer\bin\wsadmin.bat -lang jython -conntype none -c "execfile('test.py')" -c "echo ('Hello','World')"

+ Reply to Thread