[下一页][首页][上一页]

我如何传送讯息到其使用者的萤幕?

NAME
     write - 传送讯息到其使用者
SYNOPSIS
     write user [ttyname]
DESCRIPTION
     Write 允许您连络其他使用者,它将您终端机上的讯息拷贝给其它的使用者。

     当您执行 write 指令时,对方会收到以下面形式表示的讯息:

           Message from yourname@yourhost on yourtty at hh:mm ...

     接下来您所输入的讯息都会拷贝至特定使用者的萤幕上。若对方想要回应的话,他必
     须也执行 write 指令。

     当您完成输入後,记得键入 end-of-file 或是中断字元。这一就对方会看到 'EOF'
     讯息以得知对话中断。

     如果您想传送的使用者登入超过一个终端机,您可藉由 write 指令的第二参数
     指定所要传送的终端机名称。

     传送到某人的传统协定是在最後一行或本身这行加上 `-o',这表示另一个使用者
     要开始交谈。字串 `oo' 表示这个会议将要结束。
范例:
...从 elvis 的萤幕...
$ who
elvis     ttyv0   Oct  2 20:01
elvis     ttyv1   Oct  2 20:54
goodguy     ttyp7   Oct  2 23:10   (206.186.205.23) ...透过 telnet...
$ write goodguy ...不须要写 tty,这里只有一个 goodguy...
Hi, how are you? -o
Message from goodguy@goodguy.org on ttyp7 at 02:15 ...
fine, and you? -o
Not that bad. Would you like some peanuts? -o
Neh, and I need to go eat! oo
EOF ...^D (Ctrl-D) 是中断定元...

$ _
范例:
...与从 goodguy 的萤幕...
Message from elvis@elvis.org on ttyv1 at 02:14 ...
Hi, how are you? -o
write elvis ttyv1
fine, and you? -o
Not that bad. Would you like some peanuts? -o
Neh, and I need to go eat! oo
$ EOF ...^D (Ctrl-D) 是中断定元...

$ _
[上一页][首页][下一页]