Interrupting program from command line

From: Alex Vinokur (alexvn_at_bigfoot.com)
Date: 06/26/03


Date: Thu, 26 Jun 2003 19:32:37 +0300

Hi,

I have some program that works endlessly.
I want the program to be interrupted in some time after starting.
Is it possible to do that from command line?

Something like (pseudo-code) :
$ run 6 sec my_program,

   ==========================================
   Alex Vinokur
     mailto:alexvn@connect.to
     http://www.simtel.net/pub/oth/19088.html
     http://sourceforge.net/users/alexvn
   ==========================================