hello i am trying to generate a list of the most bandwidth consuming ip's from an Apache style log file. the script is run with the path to the log file as the only peramater.
here is my code so far:
im very new to shell scripting and am having problems storing the results of my for loop in the variable $outpt so that i could perform a sort -rn | head -10 on the data.
also at the begining of the loop
"=: not found"
is outputed to the screen. any help would be much appriciated.
Hello,
I have this script running on cron every 20 minutes.
By 12pm daily, our system is expecting all input files to be uploaded by the script.
After this cutoff time, the script would still be running though, but i need some kind of alerts/logs to know which input files weren't received for... (1 Reply)
I have four years of shell scripting experience in AIX and HP-UX and have worked in perl scripts as well, the good part is i love scripting and so far i have been getting job offers as well.
The bad part is , shell scripting is all i know , so the kind of jobs i am getting is mostly production... (2 Replies)
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Hy i have some tasks to do in school but i'm having problems with it,so could you help me out? :)
first there is a task where i have to find a running program on the system and kill it, then repeat that every 5 minutes. The name of the process is given with an argument. I have done this so far,... (1 Reply)
Evening all,
Im trying to get a script that will:
Select the most 3 recent files in a specific directory
Run a command on them (like chmod)
Ask of you would like to continue
Copy the files to another directory
If a linux guru could help me out, it would be very much appreciated.
Thanks... (2 Replies)
Hi all, this is my first post, so please be gentle...
I have a situation wherby I need a script that traverses known paths. Check for the modified date (n days) and then deletes all subdirs.
I have come up with this hotch potch, but as far as I can tell it seems to work.
What I am wondering... (4 Replies)
0intro 0intro intro 0intro 2a 2a 6a 2a 8a 2a ka 2a va 2a xa 2a 2c2c 6c 2c 8c 2c kc 2c vc 2c xc 2c 2l 2l 6l 2l 8l 2l kl 2l vl 2l xl2l 81/2 81/2 label 81/2 window 81/2 wloc 81/2 acid acid acme acme
awd acme win acme 8al alef alef alef kal alef val alef ar ar artart art2pic art ascii ascii unicode ascii awk awk basename base-name bc bc bind bind mount bind unmount bind bundle bundle c++c++ c++/2c c++ c++/2l c++ c++/8c c++ c++/8l c++ c++/kc c++ c++/kl
c++ c++/vc c++ c++/vl c++ cal cal calendar calendar cat cat read
cat char char rschar char 1/2char char chgrp chgrp chmod chmod
cmp cmp comm comm con con cu con rx con telnet con xmr con xmscon cp cp mv cp cpp cpp cpu cpu date date db db dc dc dd dd dela-tex deroff deroff deroff diff diff doctype doctype du du echoecho ed ed emacs emacs eqn eqn factor factor primes factor filefile fmt fmt fone fone fortune fortune freq freq 4s games 5s
games ana games catclock games clock games festoon games fire-works games fsim games games games life games mandel games plumbgames smiley games swar games grap grap graph graph grep grep gsgs hoc hoc hp hp join join broke kill kill kill ktrans ktrans lexlex look look lp lp lc ls ls ls aliasmail mail edmail mail mailmail seemail mail sendmail mail smtp mail smtpd mail to mail vis-mon mail vwhois mail lookman man man man mc mc membername mk mkmk mkdir mkdir mothra mothra netstat netstat news news nm nm p p
page page netkey passwd passwd passwd pcc pcc pic pic tpic picplot plot ppp ppp pppclient ppp pppserver ppp pr pr kprof profprof prof proof proof ps ps psu ps pbd pwd pwd pwd cd rc eval rcexec rc exit rc flag rc rc rc rfork rc shift rc wait rc whatis rc
~ rc rm rm B sam sam sam sam.save sam sed sed seq seq size size
sleep sleep sort sort spell spell sprog spell spin spin split
split start stop stop stop strings strings strip strip md5sum sumsum sum syscall syscall tail tail 32vfs tapefs cpiofs tapefstapefs tapefs tapfs tapefs tarfs tapefs tpfs tapefs v10fs tapefs
v6fs tapefs tar tar tbl tbl tcs tcs tee tee iwhois tel tel teltest test bibtex tex dvips tex dviselect tex latex tex mf tex textex time time touch touch tr tr nroff troff troff troff tweaktweak twig twig uniq uniq units units ki vi vi vi xi vi wc wc whowho whois who xd xd yacc yacc yesterday yesterday