How to identify if a port is open on IBM i through qshell? #2763
Unanswered
rishabkaushik
asked this question in
IBM i
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a bash script that checks if a port is open on IBM i, if it is then do nothing. If it is not then run a
.war
file for a java application.I tried to find a
qshell
command likenetstat
orss
but they do not exist on IBM i. So I figured I can use curl to look for status as below.curl --silent --max-time 3 localhost:$PORT >/dev/null
There is
qsys2.netstat_info
as well but I will prefer a shell command. Is there any such command that exist for IBM i?Apologies for asking so many questions here.
Beta Was this translation helpful? Give feedback.
All reactions