This maybe the dumpiest question you've ever been asked..but i've been browsing, searching and understanding lots of information that i get from the internet..i'm confused that i might be in the wrong way in understanding it since i have to do a system that count and build up a statistics for a server and the clock is ticking make me feel kind of lost..
And still i was left with a big confusion with what script/language/command should i use if i want to show the statistics from log files..
i have log files and i learn commands to grep it but the thing is that i confused with what script can bind them up..i am better with php and prefer the script but do i have to use another script such as Perl or else to show the output?
Your help is worth a lot
It would help if you can identify which tool you are using to collect the statistics - my guess would be sar, but there are a hundred tools out there for collecting various statistics...
i was working on a Unix server..the log files has already in the terminal..
i'm not allowed to use any tools to collect the statistics..i'm only allowed to use command and script since the log files is already provided in /etc..
all i need to do is create the script/command/use language to grep the information from the log files and then show it as an output..but i'm confused what script should i use since i also have to use command such as grep to collect the information..=(
Thank you avronius..it would help me in collecting the information of the users by using grep command..i have made some research and found that i can use either Perl or Php command line in providing the output..but i'm not that sure..
prym_admin..my project apparently as same as webalizer (if u guys ever heard of it). It is a system to collect information of the downloader or visitors of website where it get the information from the log files,grep the prefered information and make it as an ouput (such as in graph or table of statistics)..
example of log file:
Sep 13 04:22:25 terminal newsyslog[693]: logfile turned over
10.10.100.10 - - [13/Sep/2008:04:23:34 +0800] "GET /~home/folder/folder/folder/folder/file.php HTTP/1.1" 404 278 "-" "-"
it has the ip address,time,date,downloaded file,type of browser used and so on..this is just one line of it..
i need to get all the information automatically save into a new file and then i have to show the output of the new file into a graph or table..
thanks a lot and sorry for my late reply..
Hi
I'm currently rewriting a project from install-required to a pure runtime form.
The former had required the project name and the definition of the command as name, as they all become functions now, this could be shorter.
As you might have figured, the project already exists in another... (3 Replies)
Hello,
Anyone please covert this in perl language
########################
if ps faux | grep -v grep | grep ProcessXYZ
then
echo "$SERVICE is running, , everything is fine"
exit 0
else
echo "$SERVICE is not running"
exit 2
fi
Additional... (1 Reply)
Dear AIXians,
I have a task for very simple script, but I can't write it correctly :confused:
I have a file called (out.txt), if any line of this file starts with the word 'ORA', it must send email, if the file (out.txt) don't have this word, so it do nothing.
Please tell me how.
... (4 Replies)
hi,
I am new in the shell script, and c programming with linux. I am looking to pass the arguments in c program that should be executed by the shell script.
e.g.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv)
{ int i;
for (i=1;i<argc; i++)
{
... (2 Replies)
Hi,
Can you let me know in which language is the below scrip written.
@echo "*** PREINSTALL STARTED ***"
@echo "---> Verify existence of top level directories and creating them "
-$(INS) -d -m 755 $(DEST_PLUGIN_EXPORT_DIR)
-$(INS) -d -m 755 $(DEST_PLUGIN_DOCS_DIR)
... (3 Replies)
I am in need to execute the Files transferring's shell script from ABAP programming language. it would be highly appreciated if you help me as quickly as possible. Thank you (28 Replies)
Someone asked me to post a very simple script for creating multiple language sitemaps from a vbseo generated sitemap for vbulletin. You will need to create the required directories, change the paths and website name as appropriate.
This code could be easily wrapped in a simple while loop and... (0 Replies)
I'm new to the UNIX world and have to learn scripting for my job. Presented with multiple scripts to learn (and then have to maintain in the future) is there a utility or process to input a script in it's native form and output what each line would look like fully parsed (i.e.: all variable names... (3 Replies)