0

I just need to return this seg value to shell script. Here's my code:

import os
certificate1=AdminTask.listPersonalCertificates('[-keyStoreName
NodeDefaultKeyStore -keyStoreScope (cell):h1423Cell01:(node):h1423Node01 ]')
temp=certificate1
seg=temp[-16:-5]

print seg
3
  • I wonder, what do you mean by 'return'? Looks like you're already printing the value to stdout. If you capture that value in your calling script, you're all set. Commented Dec 3, 2018 at 16:28
  • I am having shell script which is calling my jython script .I just want to send the seg variable value to my shell script to use. Commented Dec 5, 2018 at 16:13
  • Possible duplicate of assigning value to shell variable using a function return value from Python Commented Dec 6, 2018 at 16:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.