|
|
|
| how can i pass an argument in a .jacl script from command line? I'm trying to run the foll command from command prompt:
wsadmin -conntype SOAP -host 172.19.39.53 -port 8880 -f "uninstWASJacl.jacl"
and i want to pass some argument in this "uninstWASJacl.jacl" file (which i can use within the file as "$arg").
Thanks in advance.
| |
| Ken Hygh 2006-03-08, 7:53 am |
| sushant248@hotmail.com wrote:
> how can i pass an argument in a .jacl script from command line? I'm trying to run the foll command from command prompt:
>
> wsadmin -conntype SOAP -host 172.19.39.53 -port 8880 -f "uninstWASJacl.jacl"
>
> and i want to pass some argument in this "uninstWASJacl.jacl" file (which i can use within the file as "$arg").
>
> Thanks in advance.
wsadmin -help
Ken
| |
|
| Thanks Ken. I know about "-help", but that didn't help. When I try
C:\>wsadmin -conntype SOAP -host 172.19.39.53 -port 8880 -f "uninstWASJacl.jacl" z
I get
WASX7209I: Connected to process "server1" on node KIGUR-aplvmdel2Node01 using SOAP connector; The type of process is: UnManagedProcess
WASX7303I: The following unrecognized options are passed to the scripting environment and are available as argv: "[z]"
Please help with an example.
| |
| Ken Hygh 2006-03-08, 7:53 am |
| sushant248@hotmail.com wrote:
> Thanks Ken. I know about "-help", but that didn't help. When I try
>
> C:\>wsadmin -conntype SOAP -host 172.19.39.53 -port 8880 -f "uninstWASJacl.jacl" z
>
> I get
>
> WASX7209I: Connected to process "server1" on node KIGUR-aplvmdel2Node01 using SOAP connector; The type of process is: UnManagedProcess
> WASX7303I: The following unrecognized options are passed to the scripting environment and are available as argv: "[z]"
>
> Please help with an example.
You're making this harder than it is :-). That message is stating
precisely that 'z' is now in argv.
with that invocation above, sys.argv[0] == 'z'
Ken
PS - that's a totally stupid message from wsadmin
|
|
|
|