Running q-shell commands( on IBM-i Series) from cygwin terminal (on windows)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Running q-shell commands( on IBM-i Series) from cygwin terminal (on windows)
# 8  
Old 08-12-2014
You use the ibm-client to login to IBM-i, but does it login to the same user or not? I don't know what ibm-client is, does it also take you to a shell, or does it take you to that program directly?

Did you try my suggestion of . /etc/profile ?
# 9  
Old 08-13-2014
I am using the same user to login through the IBM-client. When I login through the client I have to enter the command STRQSH (stands for start qshell) to enter into the q-shell and then I can use all the commands.

I am not sure what the /etc/profile solution is.(Really appreciate if you can explain). But here is what I tried.
There was no .profile file initially on the IBM-i under /home/john. So I created one with the below contents .

Code:
SHELL="/usr/bin/qsh"
export SHELL
export PATH

I went back to the windows machine and ran

Code:
ssh john@ibm-i

Ran the set command and I see the SHELL is changed to QShell

Code:
SHELL=/usr/bin/qsh

Then I invoked the wsadmin

Code:
cd /path/to/wsadmin

same error:

Last edited by Corona688; 08-13-2014 at 03:56 PM..
# 10  
Old 08-13-2014
My ". /etc/profile" solution means typing ". /etc/profile" and hitting the ENTER key once you have logged into the IBM server... This may load a more complete profile in case ssh did not. Have you tried it yet?

But what you are telling me now is very different from what you told me before.

Are you saying you get the error just by running cd /path/to/wsadmin ?
# 11  
Old 08-13-2014
I entered the ./etc/profile on IBM-i and I get

Code:
./etc/profile:not found

I missed the output below. Apologizes.

I mean to say

cd /to/path/to/wsadmin and ran the command

Code:
wsadmin -lang jython

and I got the error


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

# 12  
Old 08-13-2014
Quote:
Originally Posted by gaurav99
I entered the ./etc/profile on IBM-i and I get

Code:
./etc/profile:not found

That is not what I asked you to run. You missed a space.

Code:
. /etc/profile

# 13  
Old 08-13-2014
Oh ok ..

Entered

. /etc/profile

output

Code:
/etc/profile: not found

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Login or Register to Ask a Question