From owner-freebsd-fs@FreeBSD.ORG Tue Aug 3 15:07:54 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEE9D16A4CE; Tue, 3 Aug 2004 15:07:54 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FCD043D45; Tue, 3 Aug 2004 15:07:54 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i73F6JAZ084021; Tue, 3 Aug 2004 11:06:19 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i73F6GHC084017; Tue, 3 Aug 2004 11:06:17 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Tue, 3 Aug 2004 11:06:16 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: ravi In-Reply-To: <1091526793.4761.44.camel@ravin> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding writing to /proc entries X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 15:07:55 -0000 On Tue, 3 Aug 2004, ravi wrote: > The README file in /sys/fs/procfs directory says that we can send the > control messages to note or ctl files for any process . But when we > execute the command > > echo hup > /proc/curproc/note > > OR > echo attach > /proc/2/ctl It may be because you're writing the word and a line feed, and it could be our note file doesn't know what to do with the line feed. Try "echo -n" instead? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research > > the following error message comes on the terminal . > > $ echo hup > /proc/curproc/note > /proc/curproc/note: Operation not supported > > and > > $ echo attach > /proc/2/ctl > /proc/2/ctl: Operation not supported > > > > What is the reason for this ? > > Is it not possible to write the control words or control messages to the > process entries under /proc ? > > Please reply to this mail . > > Regards, > N Ravi > > > > >