Score:-1

a script that terminates all processes owned by the current user,

ph flag

I don't know how to write a scrypt that terminates all processes owned by the current user whose machine time (TIME) is greater than 1 minute

djdomi avatar
za flag
Requests for product, service, or learning material recommendations are off-topic because they attract low quality, opinionated and spam answers, and the answers become obsolete quickly. Instead, describe the business problem you are working on, the research you have done, and the steps taken so far to solve it.
Score:1
in flag

killall -u ${USER} should do the trick.

See the command documentation and check if your environment is populating USER variable with current user.

ph flag
Warning: there are at least two different utilities named `killall` that do significantly different things, so check your OS's documentation (i.e. the man page) to see if this will work with the one you have.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.