![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Snoop Script | tafil | Shell Programming and Scripting | 2 | 07-30-2008 03:24 AM |
| Howto make an URL world readable | monkfan | UNIX for Dummies Questions & Answers | 3 | 04-11-2007 12:16 PM |
| Script to move certain number of files every 10 minutes. | amitsayshii | UNIX for Dummies Questions & Answers | 1 | 02-26-2007 04:55 AM |
| Howto read data into a shell script | banjo | Shell Programming and Scripting | 4 | 09-06-2006 07:41 AM |
| Convert minutes to hours, minutes, seconds | Vozx | Shell Programming and Scripting | 1 | 12-09-2005 01:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need help howto make a script for Set SNOOP run for 5 minutes
Hi all,
I want to monitoring my interface every 6 hours where i want to run snoop command to capture all packet through the interface, so i want running snoop then snoop will run for 5 minutes after that snoop stop then will start again after 6 hours than run for 5 minutes again. thereis any guide for me how to start that script? |
|
||||
|
Quote:
Code:
PID=$! Code:
kill -2 $PID Code:
if not kill -9 $PID ![]() -----Post Update----- Quote:
there are some problems to this snoop from other users grep itself is a process and the last - when something is available for free in the form of $! you don't have to work on it again |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|