Re: Running a shell command for a specific period of time

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jason Spatafore
Date:  
To: Main PLUG discussion list
Subject: Re: Running a shell command for a specific period of time
On Wednesday 26 October 2005 08:12, Erik Bixby wrote:
> I was wondering if anyone knew a way to allow a shell command to run for a
> specific period of time. In this particular case, I want tcpdump to run for
> 23 hours, 59 minutes, 59 seconds. I couldn't find anything in the tcpdump
> man page that gave me the impression that tcpdump itself has that
> functionality. And, I couldn't find anything in a quick google search. I
> also thought it was an interesting scripting trick that I don't know, and
> thought I'd ask you nice folks...
> -Erik


http://comp.eonworks.com/scripts/killppp

That script may be a very good stepping stone towards your solution. It's not
exactly what you want, but a little hacking should get you the results you
want.

--
Sincerely,

Jason Spatafore
http://www.spatafore.net
Linux+ Certified Professional
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss