Sponsored Content
Top Forums Shell Programming and Scripting Running q-shell commands( on IBM-i Series) from cygwin terminal (on windows) Post 302912906 by gaurav99 on Tuesday 12th of August 2014 02:18:53 PM
Old 08-12-2014
I am trying to invoke a scripting utility called wsadmin on ibm-iseries.

Steps below to invoke the scripting client on I-series through IBM-I command line utility

1. login through the ibm-command line client

2. Start the QSHELL using the command STRQSH

3. Navigate to the folder where my scripting utility (wsadmin) is present and ran

4. wsadmin -lang jython

5. The output is as below

The java.version property was detected as input. This property is used as out
put only and has no effect on JVM initialization.
WASX7209I: Connected to process "dmgr" on node BoxManager using SOAP connec
tor; The type of process is: DeploymentManager
WASX7031I: For help, enter: "print Help.help()"
wsadmin>

6. I get the wsadmin prompt successfully which is what I am looking for.


=============================================================================

I wanted to invoke the same utility on the IBM-I series from a windows machine


Now I installed cygwin on a windows machine and set up a ssh tunnel to IBM-I series machine mentioned above ...so I could run the wsadmin utility on IBM-I series from cygwin.


====================================================================================

Verified the ssh tunnel by logging in using the command

ssh user@ibm-i and I was able to login to the IBM-I series machine

======================================================================================
I navigated to the path where wsadmin is present and ran the same command

wsadmin -lang jython and I got the error


wsadmin : syntax error at line 12: '(' unexpected


============================================================================================

My question : Is there some settings that needs to be done to run Q-SHELL COMMANDS on cygwin ?
 

9 More Discussions You Might Find Interesting

1. Programming

Ibm Mq Series

hi everybody, My name is Raj i work in GE Global Software Solutions As Siebel Analyst. Can any one help in writing the code in Ansi C on HP-Unix platform to get data from IBM MQ-Series Server. IBM MQ-series client will be installed on the client machine which is on WIN NT platform. And MQ-series... (2 Replies)
Discussion started by: garimella
2 Replies

2. UNIX for Dummies Questions & Answers

Running Terminal and/or X-Windows in Mac OS X

Quick question: When I load up Terminal or X-Windows on my Mac, and the prompt comes up...what folder am I starting in? (2 Replies)
Discussion started by: liquidcross
2 Replies

3. AIX

installation of 5.2 on iBM p series system

Hi all, we have iBM p series server on that 4. 3 operating system is runing.but i need ti install 5.2 or 5.3 then i ahve to install oracle 10g release 2 .but we have only 1 GB of RAM.can i install 5.2 or 5.3 with same RAM and please send me a document which discribe about how to install... (5 Replies)
Discussion started by: younusdba
5 Replies

4. AIX

IBM AIX on IBM Eseries & x series server

Hi, I want to know whether IBM AIX can be installed on the IBM e series and x series server hardware? Thanks & Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

5. OS X (Apple)

[Solved] Running shell code in AppleScript without Terminal

What I want my script to do is to run a command in Terminal and close that same Terminal window when the process is complete. Of course I could ad a delay of 6 seconds to complete the process, but it may not be enough every time. To simplify my question, this is what I want to achieve.... (9 Replies)
Discussion started by: ShadowofLight
9 Replies

6. Shell Programming and Scripting

Running shell script in Cygwin terminal

I am new to shell scripting. I tried to run a simple shell script using Cygwin terminal in Win XP env. The script I have written is as follows - #!/bin/bash a=5 ] && echo "true" || echo "false" But when I execute the script, getting some confusing error. The error I am getting are - ... (3 Replies)
Discussion started by: linux_learner
3 Replies

7. Shell Programming and Scripting

How to save and execute terminal commands in shell?

I frequently use some commands, which I want to save in some file say myregularshell.shthese are the commands I use, I tried saving and executing, but couldn't get the preview of execution, and result is also not coming if I copy same commands and paste it on terminal result is coming cd go... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies

8. AIX

How to Login Bios Server IBM p series?

Hii guys, I have IBM server power series, how to login BIOS at server IBM Power7 750, 730, 720, 520 and 550 ? and if I will new Install AIX, How I config " First Boot DVD" ?? I use command " # mount -V cdrfs -o ro /dev/cd0 /mnt " ( not work after reboot system). I need your help... (2 Replies)
Discussion started by: williamen
2 Replies

9. Filesystems, Disks and Memory

IBM ServeRAID M5100 Series

Hi, Is it possible to check progress when replace a faulty disk without reboot server? OS is RHEL 5. Please advice. Thanks. (1 Reply)
Discussion started by: mzainal
1 Replies
FS_WSCELL(1)						       AFS Command Reference						      FS_WSCELL(1)

NAME
fs_wscell - Returns the name of the cell to which a machine belongs SYNOPSIS
fs wscell [-help] fs ws [-h] DESCRIPTION
The fs wscell command returns the name of the local machine's home cell. OPTIONS
-help Prints the online help for this command. All other valid options are ignored. OUTPUT
The output displays the contents of the local /etc/openafs/ThisCell file, in the format This workstation belongs to cell '<cellname>' EXAMPLES
The following example results when the fs wscell is issued on a machine in the State University cell: % fs wscell This workstation belongs to cell 'stateu.edu' PRIVILEGE REQUIRED
None SEE ALSO
fs_whereis(1), fs_whichcell(1) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 FS_WSCELL(1)
All times are GMT -4. The time now is 08:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy