[comp.sources.wanted] Execution Timer

mpd@anomaly.sbs.com (Michael P. Deignan) (11/01/90)

I'd like to find a program which would perform similar to the "time" command,
only in reverse:

	time +nmins command.to.execute

Which would execute "command.to.execute" for up to "nmins" minutes.

Is anyone aware of such an animal?

MD
-- 
--  Michael P. Deignan                      / Introducing...
--  Domain: mpd@anomaly.sbs.com            /  MommyCalc: A Spreadsheet so 
--    UUCP: ...!uunet!rayssd!anomaly!mpd  /   simple, even a woman can learn
-- Telebit: +1 401 455 0347              /    how to use it....

darcy@druid.uucp (D'Arcy J.M. Cain) (11/03/90)

In article <4147@anomaly.sbs.com> Michael P. Deignan writes:
>I'd like to find a program which would perform similar to the "time" command,
>only in reverse:
>	time +nmins command.to.execute
>Which would execute "command.to.execute" for up to "nmins" minutes.

Never heard of one but assuming a UNIX system (you didn't say) running a
Bourne shell this will do what you want I think:

command &
sleep 60
kill $!

Will kill the command after 1 minute.

-- 
D'Arcy J.M. Cain (darcy@druid)     |
D'Arcy Cain Consulting             |   I support gun control.
West Hill, Ontario, Canada         |   Let's start with the government!
+ 416 281 6094                     |