My skills with shell scripting is pretty minimal, but would this
work...?
* Run 'tcpdump' via cron. Save the pid of program in a file.
* 24 hours (minus 1 second) later run 'kill' via cron, using the
saved pid.
alex
On Oct 26, 2005, at 8:12 AM, 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
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss