LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem using write (https://www.linuxquestions.org/questions/linux-newbie-8/problem-using-write-455152/)

sancho1980 06-15-2006 03:47 PM

problem using write
 
hi
i was trying to use this write shell program
i just opened two terminals and typed "who" in one of them
It gave me the following output:

sancho :0 Jun 15 22:33

so then i typed:

write sancho tty0 but i get the message:

write: sancho is not logged in on tty0

what am i doing wrong?

thanx,

martin

pronoy 06-16-2006 01:37 AM

"who" or "w" command will print the terminal also for sancho.
Is that tty0 ?

Try without tty0 argument, or give the specific terminal getting from 'who' command.

LzW-x 06-16-2006 04:57 AM

OK, you guys are really confusing me!!! I know who and w are linux commands about login accounts and that write is a windows 3.x program!

how did this become a shell program with tty0?

pronoy 06-16-2006 05:11 AM

Now you are confusing me :)
I thought it is in linux, linux have the 'write' program.
I don't know about windows :(

sancho1980 06-17-2006 02:06 AM

Quote:

Originally Posted by pronoy
Is that tty0 ?

Well, I don't know what else :0 would mean.
I'm using my own (regular) pc with kanotix 64 installed and in a single-user environment so which other tty could it be?

pronoy 06-19-2006 01:26 AM

Well, assuming you are running on some Xwindows.
Run 'w', which will get more output than 'who'.
Also type 'tty' command in both the terminals, it will give the name of the terminal.
And execute 'write' command for you target terminal accordingly.


All times are GMT -5. The time now is 08:54 PM.