WebSphere Application Server - wsadmin

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > March 2006 > wsadmin





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author wsadmin

2006-03-08, 7:53 am

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

2006-03-08, 7:53 am

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com