Operating System - HP-UX
1831137 Members
2616 Online
110020 Solutions
New Discussion

URL monitoring shell script

 
SOLVED
Go to solution
Shivkumar
Super Advisor

URL monitoring shell script

Dear Sirs,

I am asked to develop a shell script for testing certain URLs by posting user name and password.

Does anyone has some scripts which i can modify and use it ?

Thanks,
Shiv
5 REPLIES 5
Mel Burslan
Honored Contributor
Solution

Re: URL monitoring shell script

take a look at wget command. I am not sure if it supports gets and posts but it does some pretty amazing stuff in my opinion.

if you do not already have it, you can download it from :
http://hpux.cs.utah.edu/hppd/hpux/Gnu/wget-1.9.1/
________________________________
UNIX because I majored in cryptology...
Muthukumar_5
Honored Contributor

Re: URL monitoring shell script

Username and passwd for proxy server or web server?

You can use wget utility for this.

wget --http-user= --http-passwd=

You can put it into .wgetrc in your home directory.

For proxy server then,

wget --proxy-user=user --proxy-passwd=password

Get wget utility and try it with shell script.

hth.

Easy to suggest when don't know about the problem!
Steve Steel
Honored Contributor

Re: URL monitoring shell script

Hi

wget is indeed a geat solution

If that is not what you want look at shelldorado.com

That is the biggest collection of scripts and tips there is.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ganesha Sridhara
Honored Contributor

Re: URL monitoring shell script

Hello All,

I tried wget in both HP-UX 11.0 and HP-UX 11.11 and got following error:

/usr/lib/dld.sl: Can't find path for shared library: libcrypto.sl
/usr/lib/dld.sl: No such file or directory
Abort(coredump)

Wheather I need to install any library?

Thanks in advance

Regards
Ganesha Sridhara
Muthukumar_5
Honored Contributor

Re: URL monitoring shell script

Is libcrypto.sl library available in your machine. It has to be SHLIB_PATH location.

hth.
Easy to suggest when don't know about the problem!