Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys, i am a very noob on Shell Scripting and I'm wondering if you could help me with some issues.
I need to know users that are executing a watch command in the same computer in which 'MyOwnCommand' is beeing executed.
I guess I have to use a grep command but I dont know how to use it.
Can you help me?
thanks
Posted
Comments
Richard MacCutchan 24-May-15 8:35am    
I don't think that information is available, since each user runs in his own closed environment.
Member 11714555 24-May-15 8:40am    
well, i guess there is a solution (it is a project for university) :)
i tried with ps -aux | grep command
but i don't know if it could work
Tomas Takac 25-May-15 4:36am    
I would say ps & grep is the right way to go.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900