Re: How to check if a user already login?
Amaresh Chandra Das <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Hez, Please use this bellow command , if someone is logged in then you will get message like " \_ ssh amareshcd@cvs" # ps ax |grep -i cvs 1057 pts/2 S+ 0:00 grep -i cvs 28728 pts/3 S+ 0:00 ssh amareshcd@cvs # ps axfj |grep -i cvs 28076 30359 30358 28005 pts/2 30358 S+ 0 0:00 | \_ grep -i cvs 28526 28728 28728 28437 pts/3 28728 S+ 0 0:00 \_ ssh amareshcd@cvs Help me , if i am wrong, Thanks, -Amaresh "Walk with a hope in your heart....you will never walk alone" --- On *Wed, 4/2/09, hezjing <[email protected]>* wrote: From: hezjing <[email protected]> Subject: How to check if a user already login? To: [email protected] Date: Wednesday, 4 February, 2009, 8:21 AM Hi I'm required to write a script to automate some CVS commands. Is there a CVS command to check if a user has already login? One way to do this is to execute a CVS command (e.g. cvs log or checkout) and observe the errors, but is there a more elegant way? Thank you! -- Hez