Date: Thu, 16 Sep 1999 10:28:07 +1200 (NZST) From: Jonathan Chen <jonc@logisticsoftware.co.nz> To: Jamie Norwood <mistwolf@mushhaven.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: mesg: ttyname: Inappropriate ioctl for device Message-ID: <Pine.SC5.4.10.9909161026370.20531-100000@kiwi.logisticsoftware.co.nz> In-Reply-To: <19990915132355.A87012@mushhaven.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 15 Sep 1999, Jamie Norwood wrote:
> I have a cron entry:
>
> */5 * * * * $HOME/bin/pinggate >> /dev/null
>
> Now, it runs every 5 minutes just fine and does exactly what it is supposed
> to. However, every time it runs, I get an email with the message:
>
> mesg: ttyname: Inappropriate ioctl for device
>
> What is this trying to telll me and how do I fix it? Script is included
> below in case it is something in the pinggate script.
>
> Jamie
>
> ---
>
> #!/usr/local/bin/tcsh
>
> ping -c 100 gateway > /tmp/pings/ping.`date +%m.%d.%H.%M`
Change the interpreter to
#!/bin/sh
If you use tcsh it will attempt to load up .tcshrc which in your case
probably has `mesg y' in it.
Jonathan Chen
----------------------------------------------------------------------
The human mind ordinarily operates at only ten percent of its capacity
-- the rest is overhead for the operating system.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SC5.4.10.9909161026370.20531-100000>
