[PLUG] login....

Russell Evans revans at e-z.net
Tue Aug 13 06:26:30 UTC 2002


Starting with w
$ w
 11:03pm  up 20:56,  2 users,  load average: 0.03, 0.01, 0.00
USER	 TTY	  FROM		    LOGIN@   IDLE   JCPU   PCPU  WHAT
revans	 tty1	  -		    2:07am 20:55m 11.52s  0.01s  /bin/sh
/usr/X1
revans	 pts/0	  -		   11:03pm  0.00s  0.03s  0.01s  w

I open another xterm and use the w command agian

$ w
 11:03pm  up 20:57,  3 users,  load average: 0.02, 0.01, 0.00
USER	 TTY	  FROM		    LOGIN@   IDLE   JCPU   PCPU  WHAT
revans	 tty1	  -		    2:07am 20:55m 11.57s  0.01s  /bin/sh
/usr/X1
revans	 pts/0	  -		   11:03pm  0.00s  0.02s  0.00s  w 
revans	 pts/1	  -		   11:03pm  2.00s  0.01s  0.01s  bash

So now I know who is where and can use the write command on pts/0

$ write
usage: write user [tty]

OK so to write to myself 
$ write revans pts/1
hello

And at the other end 

$ 
Message from revans at localhost on pts/0 at 23:03 ...
hello

Now to answer back

$ write revans  pts/0
what


On pts/0 I get 

Message from revans at localhost on pts/1 at 23:04 ...
what

control c to end the conversation at one end. Another control c at the other
end to stop that sesion.

I don't think this can work in a three way conversation. You could have two one
on one conversations but the two others involved would not know what the other
was writing. If you want a three way conversation you will have to run some
type of server. There are many servers that can do this and the merits of which
type of server to use for this senario is beyond my experience.


Thank you
Russell


On Tue, 13 Aug 2002 13:41:30 +0800, Billy M Dimaculangan said:

>  were three of us who knows the root passwd.  If  I log in as root and one of
>  them or both of them log in also as root would I be able to determine if how
>  many has login as root.  How would is send a message to them.






More information about the PLUG mailing list