I want the script to take an input like
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.
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
jdresolve
JDRESOLVE(1) User Contributed Perl Documentation JDRESOLVE(1)NAME
jdresolve - resolves IP addresses into hostnames
SYNOPSIS
jdresolve [-h] [-v] [-n] [-r] [-a] [-d <level>] [-m <mask>] [-l <line cache>] [-t <timeout>] [-p] [-s <number of
sockets>] [--database=<db path>] <LOG FILE>
jdresolve [--help] [--version] [--nostats] [--recursive] [--anywhere] [--debug=<level>] [--mask=<mask>] [--linecache=<line
cache>] [--timeout=<timeout>] [--sockets=<number of sockets>] [--database=<db path>] [--dbfirst] [--dbonly]
[--dumpdb] [--mergedb] [--expiredb=<hours>] [--unresolved] [--progress] <LOG FILE>
DESCRIPTION
jdresolve resolves IP addresses to hostnames. Any file format is supported, including those where the line does not begin with the
IP address. One of the strongest features of the program is the support for recursion, which can drastically reduce the number
of unresolved hosts by faking a hostname based on the network that the IP belongs to. DNS queries are sent in parallel, which means
that you can decrease run time by increasing the number of simultaneous sockets used (given a fast enough machine and available
bandwidth ). By using the database support, performance can be increased even further, by using cached data from previous runs.
OPTIONS -h, --help
produces a short help message
-v, --version
display version information
-n, --nostats
don't display stats after processing
-r, --recursive
recurse into C, B and A classes when there is no PTR (default is no recursion)
-d, --debug=<debug-level>
debug mode - no file output, just statistics during run (verbosity level range: 1-3)
-t, --timeout=<seconds>
timeout in seconds for each host resolution (default is 30 seconds)
-l, --line-cache=<lines>
numbers of lines to cache in memory (default is 10000
-s, --sockets=<sockets>
maximum number of concurrent sockets (use ulimit -a to check the max allowed for your operating system - defaults to 64)
-m, --mask=<mask>
<mask> accepts %i for IP and %c for class owner, e.g. "somewhere.in.%c" or "%i.in.%c" (default is "%i.%c")
-a, --anywhere
resolves IPs found anywhere on a line (will resolve all IPs if there is more than one)
-p, --progress
prints a nice progress bar indicating the status of the resolve operations
--database=<db path>
path to database that holds resolved hosts/classes
--dbfirst
check if we have resolved entries in the database before sending out DNS queries
--dbonly
don't send DNS queries, use only resolved data in the database
--dumpdb
dumps a database to STDOUT
--mergedb
merges resolved IP/classes from a file (or STDIN) with a database
--expiredb=<hours>
expires entries in the database that are older than <hours> hours
--unresolved
won't attempt to resolve IPs, only lists those that were not resolved
<LOG FILE>
the log filename or '-' for STDIN
EXAMPLES
jdresolve access_log > resolved_log
jdresolve -r -s 128 access_log > resolved_log
jdresolve -r --database hosts.db access_log > res_log
SEE ALSO rhost(1)AUTHOR
jdresolve was written by John D. Rowell <me@jdrowell.com>, and is licensed under the terms of the GNU General Public License.
The original version of this man page was written by Craig Sanders <cas@taz.net.au>, for the Debian GNU/Linux package of jdresolve,
and is also licensed under the terms of the GNU GPL.
3rd Berkeley Distribution perl 5.005, patch 03 JDRESOLVE(1)