07-30-2008
If you have ksh93 installed you can use file redirection to test if a connection is up. From the ksh93 man page:
In each of the following redirections, if file is of the
form /dev/sctp/host/port, /dev/tcp/host/port, or
/dev/udp/host/port, where host is a hostname or host
address, and port is a service given by name or an integer
port number, then the redirection attempts to make a tcp,
sctp or udp connection to the corresponding socket.
Alternatively how about using wget? It is on the Companion CD as SUNWwgetr
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to create a perl script that will make sure a web page can be accessed going through an Apache httpd. The actual content of the web page does not matter. Most likely the web page will just have "You have successfully reached this port." This script will eventually be running... (5 Replies)
Discussion started by: rehoboth
5 Replies
2. AIX
Hi all,
I'm sorry to post this question, but I searched and searched and search but I did not find an alternative url for this one:
http://www14.software.ibm.com/webapp/set2/abl/bundle?release=52 (53)
I used this site to check for the latest TLs.
Thanks in advanced :)
tex (3 Replies)
Discussion started by: tex09
3 Replies
3. Shell Programming and Scripting
I all,
I wrote an script which starts a Weblogic server and waits until its loaded to deploy several apps. The way I checked was something like:
while ; do
wget --spider <URL>:<port>/console > /dev/null 2>&1
rc=$?
done
This works perfectly because it's an HTML site and when server is... (2 Replies)
Discussion started by: AlbertGM
2 Replies
4. Shell Programming and Scripting
I have a server that keeps going down (503 Service not available). Until we find out the problem I would like to setup a simple ksh script in cron that will query url and report the status code. This way we can get someone to restart the process.
Does anyone know a simple command I can call... (5 Replies)
Discussion started by: oldman2
5 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am running certain weblogic instance, in which it's hard to find which instance is stopped or running after stopping the weblogic , cause process status is for all the instance is same.
A URL which shows the instance is stopped or running.
But i have major challenge to check it through... (2 Replies)
Discussion started by: posix
2 Replies
6. Shell Programming and Scripting
thanks (0 Replies)
Discussion started by: kata33
0 Replies
7. Shell Programming and Scripting
Hey guys,
currently I'm struggling with a little script to check an active URL in my running Firefox.
What I'm doing:
I'm running a low VPS with about 768mb RAM and Ubuntu on it. I only installed Fluxbox + Firefox to it in order to keep the resource consumption as low as possible. I think i... (8 Replies)
Discussion started by: uniflow
8 Replies
8. Shell Programming and Scripting
I'm a scripting newbie and I'm trying to learn. No better way than being assigned a project.
So basically, I'm trying to come up with a script that can periodically check a URL and then notify when changes occur to the file.
So what I'm thinking is that I need to devise a PERL script that... (3 Replies)
Discussion started by: adam1mc
3 Replies
9. HP-UX
Hello Expert,
I want to test the url in hp-ux, so it is possible via putty ??
Also have xmanager on the same system. (5 Replies)
Discussion started by: purushottamaher
5 Replies
10. Shell Programming and Scripting
Hi,
I need to check if the URL exists.
Below is my OS:
SunOS mymac1 Generic_148888-04 sun4v sparc SUNW,SPARC-Enterprise-T5220
I do not have the curl set in the profile nor am i aware about its path.
But i have wget. Please help me with params for the same.
Can you help me check if... (6 Replies)
Discussion started by: mohtashims
6 Replies
LEARN ABOUT DEBIAN
tcp-environ
tcp-environ(5) File Formats Manual tcp-environ(5)
NAME
tcp-environ - TCP-related environment variables
DESCRIPTION
The following environment variables describe a TCP connection. They are set up by tcp-env, tcpclient, and tcpserver. Note that TCPLOCAL-
HOST, TCPREMOTEHOST, and TCPREMOTEINFO can contain arbitrary characters.
PROTO
The string TCP.
TCPLOCALHOST
The domain name of the local host, with uppercase letters converted to lowercase. If there is no currently available domain name for
the local IP address, TCPLOCALHOST is not set.
TCPLOCALIP
The IP address of the local host, in dotted-decimal form.
TCPLOCALPORT
The local TCP port number, in decimal.
TCPREMOTEHOST
The domain name of the remote host, with uppercase letters converted to lowercase. If there is no currently available domain name for
the remote IP address, TCPREMOTEHOST is not set.
TCPREMOTEINFO
A connection-specific string, perhaps a username, supplied by the remote host via 931/1413/IDENT/TAP. If the remote host did not sup-
ply connection information, TCPREMOTEINFO is not set.
TCPREMOTEIP
The IP address of the remote host.
TCPREMOTEPORT
The remote TCP port number.
SEE ALSO
tcpclient(1), tcpserver(1), tcp-env(1), tcp(4)
tcp-environ(5)