You could write some sort of script to controll the process, and call the
process, like this:
--------------------------- snip ------------------------------------
#!/bin/sh
#
# Kills the program chosen by $1
#
# Usage: killproc.sh <program to run>
#
# Amount of seconds to wait before killing the process.
wait=600
# Options for kill- for hard to kill programs
options="-9"
# Start the program in the background
$1 &
# Wait for a user selected amount of time
sleep $wait
# Kill the background process using any required options.
kill $options $!
--------------------------- snip ------------------------------------
Obviously a lot more could be done to make it a great script, but it should take
care of a few situations. The only trick here is the $! variable, which is the
PID of the most recent background job.
Hope it helps,
-Jon