The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Need help howto make a script for Set SNOOP run for 5 minutes
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Need help howto make a script for Set SNOOP run for 5 minutes
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
05-27-2009
vidyadhar85
Moderator(The Tutor)
Join Date: Jun 2008
Location: INDIA
Posts: 1,415
Quote:
Originally Posted by
tindasz
get the background process pid using $!
How to get it ?
are u have a sampe of script?
this is what you have to do
Code:
snoop & PID=`echo $!` sleep 600 kill -9 $PID
vidyadhar85
View Public Profile
Find all posts by vidyadhar85
Find vidyadhar85's past nominations received
Find vidyadhar85's present nominations given