LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2006, 03:47 PM   #1
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Rep: Reputation: 15
Question 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
 
Old 06-16-2006, 01:37 AM   #2
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
"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.
 
Old 06-16-2006, 04:57 AM   #3
LzW-x
Member
 
Registered: Jun 2006
Distribution: SuSe
Posts: 66

Rep: Reputation: 15
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?
 
Old 06-16-2006, 05:11 AM   #4
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
Now you are confusing me
I thought it is in linux, linux have the 'write' program.
I don't know about windows
 
Old 06-17-2006, 02:06 AM   #5
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Original Poster
Rep: Reputation: 15
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?
 
Old 06-19-2006, 01:26 AM   #6
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grip : no write access to write encoded file bidouilleur Linux - Software 5 10-09-2010 09:23 PM
Fedora 4 Samba write problem jraff Linux - Networking 14 11-01-2006 07:12 PM
NFS problem - no write access? aaronfg Linux - Newbie 3 12-22-2004 05:52 AM
problem in write command mtest Programming 3 10-30-2003 06:30 AM
samba write problem haydn Linux - Networking 0 07-30-2003 07:31 PM


All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration