in reply to $SIG{ALRM} to just log something?

G'day philkime,

"This is using IPC::Run to run the command."

Have you looked in the "Timeouts and Timers" section of IPC::Run?

"I don't want to kill anything (contrary to most alarm() examples I find), I just want to let the command run but send some warning somewhere if it takes X amount of time."

At least for an example of a technique you can use to achieve this, see "Check for a new line". You'll need to look at my initial response for the main code (this does kill the process); then at my subsequent response which shows a small change to intermittently output a message and not kill the process.

[See also: alarm and "perlipc: Signals"]

-- Ken