Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

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

Re: mesg: ttyname: Inappropriate ioctl for device?



In the last episode (Sep 23), Volker Stolz said:
> This is the message I get when using {r,s}cp. The copy is made
> nevertheless. Any hints on the origin of this message? /dev/tty*
> looks like the same on another FreeBSD-machine where I don't get this
> message.
> 
> Regards,
>    Volker

Check your login scripts and make sure you aren't running "mesg n" in a
script that's called on every invocation.  If your shell is zsh, for
example, the following files are executed, in this order:

.zshenv -- always loaded
.zprofile -- loaded if login shell
.zshrc -- loaded if interactive shell
.zlogin -- loaded if login shell

So you would put "mesg n" in .zprofile or .zlogin.  Check your shell's
manpage for more info.

	-Dan Nelson
	dnelson@xxxxxxxxxxxx

To Unsubscribe: send mail to majordomo@xxxxxxxxxxx
with "unsubscribe freebsd-questions" in the body of the message