FG
💻 Software

Kill process after it's been allowed to run for some time

Fresh5 days ago
Mar 15, 202616640 views
Confidence Score0%
0%

Problem

I want to limit the time a process command is allowed to run or be alive. For example. I want to perform the following: But before running the command I want to limit how long the process is to live, say no longer than 30 seconds. How do I do this? And if it can, how do I return or reset to have no…

Error Output

grep -qsRw -m1 "parameter" /var

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Kill process after it's been allowed to run for some time

Low Risk

You can use timelimit, it is available in the default ubuntu or you could compile it yourself. timelimit executes a command and terminates the spawned process after a given time with a given signal. A “warning” signal is sent first, then, after a ti…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment