Sponsored Content
Homework and Emergencies Homework & Coursework Questions Log file analyzer, super basic sh program Post 303009678 by malfiory on Monday 18th of December 2017 09:51:55 AM
Old 12-18-2017
I want the script to take an input like
Code:
./analyzer.sh 1 access_log

and print its contents.
Also to check if access_log is in the correct apache.log format, and if it isn't give back an error message.

I don't know how I could make that.
 

9 More Discussions You Might Find Interesting

1. Programming

basic math program 4 child

Iam writing a script for my sisters friends little brother i want the program to say hello lets say his name is Joe and ask him how he is and he can write a reply back saying fine and then it replys "Iam happy you are (his response) today and then it goes into a basic math where he can put in a... (9 Replies)
Discussion started by: perleo
9 Replies

2. HP-UX

BAD SUPER BLOCK - Run fsck with alternate super block number

Error received when I tried to restore a blank disk with an 'auto recovery' DDS tape via HP-UX recovery system 2.0 onto a 1Gb SCSI. I assumed it would do the setup, wrong. Could someone tell me the procedure to initial disk for recovering files using cpio. The system is a HP-UX 9.04 version on a... (1 Reply)
Discussion started by: admin wanabee
1 Replies

3. Shell Programming and Scripting

Having trouble writing a basic shell program

Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies

4. Programming

Basic multithreaded program

I'd like to write a program (I'm flexible on language; C/C++ was my original idea but a scripting language would probably be better) that runs hundreds of programs, but only N = 4 (say) at a time. The idea is to keep all the cores on a multicore machine busy. How can I do this? In particular,... (6 Replies)
Discussion started by: CRGreathouse
6 Replies

5. HP-UX

Program monitor on BT-Basic

Hi, The "program monitor" command in BT-Basic prompt you for a user name and a password. How can I grant access only to certain users ? Thank you. (0 Replies)
Discussion started by: fosiceanu
0 Replies

6. IP Networking

Best iptables log analyzer?

Hello all, i want to view my iptables log on web interface, with chart (in option, and this is not my priority). What is the best program for this? I have Ubuntu server. Thanks ! :) (0 Replies)
Discussion started by: Pacifiste95
0 Replies

7. Infrastructure Monitoring

Centralized linux system log analyzer?!

Hello everyone! I`m searching for linux log parser application. I already find some ways, but the best looks logzilla. Requirements: Web interface for viewing Filtering in web Notifications in web or email Open source Support linux system logs, custom logs and apache logs. I will... (5 Replies)
Discussion started by: jabalv
5 Replies

8. Homework & Coursework Questions

Need help with Basic Unix Program

I am a newbie to UNIX. I'm learning UNIX on my own, just trying to get the jerk of how things work in UNIX environment. I am familiar with Windows environment. Can anyone pls write simple 'envprint' programs to : 1) List all the environment Information (using the -l or --l options) 2) ... (1 Reply)
Discussion started by: agup17
1 Replies

9. Shell Programming and Scripting

Log file analyzer, super basic sh file

Hello! I have a small shell project that is due next week, that I'd appreciate some help with. task: Write a shell program that can analyze at least 2 types of log files and print them in an easily readable way. Make it so that you can switch between log file types. The two file types should be... (1 Reply)
Discussion started by: malfiory
1 Replies
JAILER(5)							File Formats Manual							 JAILER(5)

NAME
jailer.conf - configuration file of jailer SYNOPSIS
jailer.conf DESCRIPTION
jailer is a script for creating chrooted environments for Debian packages. jailer.conf is the configuration file for jailer.conf Every configuration definition has to start and end with a jail identifier, which should be unique and be in brackets. <apache> For example, an Apache chroot identifier should look like this: </apache> The identifier use needs to be closed. The configuration for the chroot instance is defined inside these identifiers. The following lines can be used to describe the con- figuration: Root: /var/chroot/apache This line describes the PATH of the chrooted enviroment. Conf: This line describes the PATH or PATH/filename which should be copied over to the chrooted environment. For example Conf: /etc/apache/* , which uses a wild card. Debs: This line contains the name of those Debian packages which should be installed into the chrooted environment. Junk-Debs: This line contains those deb packages which should not be installed into the chrooted environment. Junk: This line contains those files or directories which should not be installed. For example /lib/* means all files and links under /lib should not be installed, while /lib/libconsole.so.0.0.0 means a file which should not to be installed. Extra: This line contains those files or directories which should be installed into the chrooted environment. For example: /var/run will install that a directory which is needed for the chrooted service. WARNING
Do not configure your daemon inside your jail, because updatejail script will wipe out all the data inside the jail. If you would want to change any settings inside the jail, make the changes in the original location and then run updatejail . This makes it possible to place a jail even to a ramdisk. SEE ALSO
updatejail(8) jailer.conf(5), dpkg(8) AUTHOR
This manual page was written by Peter Holtzl <peter.holtzl@balabit.hu>. December 4, 2001 JAILER(5)
All times are GMT -4. The time now is 03:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy