`I need to get the input from the user and display the value using IBM wsadmin scripting as jacl scripting language. Thanks in advance
How to get input from user in IBM jacl scripting?
449 views Asked by Suganthan Raj At
2
There are 2 answers
0
On
Assuming you are looking to have the user supply the input as command line parameters (rather than interactively during the execution of the script), refer to the following knowledge center page, http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/cxml_jacl.html
from which the following section is copied:
The Jacl shells pass the command-line arguments to the script as the value of the argv variable. The number of command-line arguments is given by argc variable. The name of the program, or script, is not part of argv nor is it counted by argc. The argv variable is a list. Use the lindex command to extract items from the argument list, for example:
set first [lindex $argv 0]
set second [lindex $argv 1]
I got the code and it works for me
puts "Enter the Value:" set input [gets stdin] puts "input value ::$input"