Fix timeout -k implementation error #725
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey @six2dez, that an error in
timeout -k
implentation, so right now Amass not working in some functions.The
timeout -k
option takes two arguments:DURATION_KILL
) is the duration after which thetimeout
command should send a KILL signal to the process if it's still running after the initial timeout period has elapsed. This duration should be specified in the same format as theDURATION
argument (e.g., '15s' for 15 seconds, '1m' for 1 minute, '2h' for 2 hours, '3d' for 3 days, etc.).DURATION
) after which a TERM signal is sent to the process. TheDURATION
argument should be followed by the command to run and limit the execution time of.So in the command
timeout -k 1m ${AMASS_INTEL_TIMEOUT}m amass intel -d ${domain} -whois
a TERM signal will be sent to the process after 15 minutes of execution. If the process continues to run 1 minute beyond this, a KILL signal will be dispatched to forcefully terminate it.