I wanted to confirm some details with the killall -o option. I tested it on some ssh connections I created under the user rick.
First I printed a list of all of ricks ssh connections along with the etime.
ps -u rick -o user,pid,etime --sort=etime
Next, I ran the following:
killall -i -o 9h ssh-agent. I went and checked each PID against my killall interactive list. The -o option appears to use the elapsed time. However, I want to be able to ensure my killall statement only includes ssh-agents from rick.
killall -i -u rick -o 9h but it kills all rick ssh-agents regardless of the etime.