The task is as follows

Write a script that terminates all processes that started more than N seconds ago.

find /proc -maxdepth 1 -user olo -type d -mmin +1 -exec basename {} \; \ | xargs ps | grep page.py | awk '{ print $1 }' | sudo xargs kill 

that's what i could find

But why does kill refuse to work? And how to fix it?

script mistake

  • Comments are not intended for extended discussion; conversation moved to chat . - Yuriy SPb

0