From owner-freebsd-questions Wed Sep 15 15:29:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from logisticsoftware.co.nz (logisticsoftware.co.nz [202.37.163.1]) by hub.freebsd.org (Postfix) with ESMTP id 2164014BC2 for ; Wed, 15 Sep 1999 15:29:11 -0700 (PDT) (envelope-from jonc@logisticsoftware.co.nz) Received: (from jonc@localhost) by logisticsoftware.co.nz (8.9.3/8.9.3) id KAA20935; Thu, 16 Sep 1999 10:28:07 +1200 (NZST) Date: Thu, 16 Sep 1999 10:28:07 +1200 (NZST) From: Jonathan Chen To: Jamie Norwood Cc: freebsd-questions@FreeBSD.ORG Subject: Re: mesg: ttyname: Inappropriate ioctl for device In-Reply-To: <19990915132355.A87012@mushhaven.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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