[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to check if a user already login?

From: Amaresh Chandra Das
Subject: Re: How to check if a user already login?
Date: Wed, 4 Feb 2009 11:23:35 +0530

Hi Hez,

Please use this bellow command ,
if someone is logged in then you will get message like " \_ ssh address@hidden"

# ps ax |grep -i cvs
 1057 pts/2    S+     0:00 grep -i cvs
28728 pts/3    S+     0:00 ssh address@hidden

# 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 address@hidden

Help me , if i am wrong,

"Walk with a hope in your will never   walk alone"

--- On Wed, 4/2/09, hezjing <address@hidden> wrote:
From: hezjing <address@hidden>
Subject: How to check if a user already login?
To: address@hidden
Date: Wednesday, 4 February, 2009, 8:21 AM


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!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]