0

Have a strange problem with jython script execution in WAS70 (solaris): wsadmin.sh in interactive mode versus with -f option.

AdminConfig.show('') works in the interactive mode of the wsadmin.sh but it doesn't show any output when run with wsadmin.sh -lang jython -f ./

I suspect something is not loaded when used with wsadmin.sh -f

what is the difference running wsadmin.sh in interactive mode like /bin/wsadmin.sh -lang jython versus /bin/wsadmin.sh -lang jython -f ./

How do I determine what is being loaded(like property files) in both mode?

Thx Ronin

Brett Kail
  • 33,593
  • 2
  • 85
  • 90
Ronin
  • 1
  • 2
  • 2
    There should be no difference. Can you update your question with your specific commands, scripts and output? – Marcin Płonka Jun 12 '13 at 05:29
  • this is the command...: AdminConfig.show('(cells//nodes//servers/|server.xml#ListenerPort_1337071014049)') – Ronin Jun 13 '13 at 21:32
  • It seems to be a shell-quoting related issue. Try this: wsadmin.sh -lang jython -c "AdminConfig.show('put_config_id_here')" – Marcin Płonka Oct 01 '13 at 03:30

1 Answers1

0

I have an idea...

  1. Make sure you use "-lang jython" when you call wsadmin
  2. Do you just use "AdminConfig.show('')" in the script?

    If you do, I think you need "print AdminConfig.show('')" else the string the command returns goes nowhere.

Threadicide
  • 126
  • 7