Shell script
|
Original Message
|
Name: Raghav
Date: January 10, 2003 at 08:09:31 Pacific
Subject: Shell script OS: Solaris8 CPU/Ram: 2G
|
Comment: I need to write a shell script which passes URL(say:localhost:80) and get the content(say "Hello world"),hostname,date and time stamp to test different components (say apcahe web server). I need to capture all this(different urls output) information and put it in a file. It seems I need to capture response page headers information. Do I need to use arrays to put data into a file. Really appreciate If any one could give shell script for this or how to write shell program for this functionality. Thanks Rag
Report Offensive Message For Removal
|
|
Response Number 2
|
Name: raghav
Date: January 10, 2003 at 09:15:31 Pacific
Subject: Shell script
|
Reply: (edit)Following is the requirement.. 1. Passing url as parameter and get the following values:a). content b). host name c). date and time stamp. Store these values in a file. Is it possible to get this info? if so could you pl. give me the syntax for the above functionality Can I use URL as a parameter in the shell script? If so, can I get the information like hostname, date and time stamp? Thanks for your help
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: sysadmin1
Date: January 10, 2003 at 16:00:13 Pacific
Subject: Shell script
|
Reply: (edit)Apache keeps a log of every web page hit, the host originating IP address, time and date, which page was hit, etc. by default. There are a number of free programs designed to parse these log files and output them in a more readable format, with charts, etc.
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: