wsadmin
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > wsadmin




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    wsadmin  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-08-06 12:53 PM

how can i pass an argument in a .jacl script from command line? I'm trying t
o 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.





[ Post a follow-up to this message ]



    Re: wsadmin  
Ken Hygh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-08-06 12:53 PM

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.jac
l"
>
> 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





[ Post a follow-up to this message ]



    Re: wsadmin  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-08-06 12:53 PM

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.j
acl" z

I get

WASX7209I: Connected to process "server1" on node KIGUR-aplvmdel2Node01 usin
g SOAP connector;  The type of process is: UnManagedProcess
WASX7303I: The following unrecognized options are passed to the scripting en
vironment and are available as argv: "[z]"

Please help with an example.





[ Post a follow-up to this message ]



    Re: wsadmin  
Ken Hygh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-08-06 12:53 PM

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 us
ing 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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:37 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register