From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 04:01:44 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 C168816A4CE; Wed, 4 Aug 2004 04:01:44 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 007F043D39; Wed, 4 Aug 2004 04:01:36 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg (avgw02b [43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i7446KI21990; Wed, 4 Aug 2004 12:06:24 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id fe664ca4_e5cb_11d8_93f9_0002b3cb4edc_3516; Wed, 04 Aug 2004 12:08:51 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i743roE01988; Wed, 4 Aug 2004 11:53:50 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id QHNJB4J3; Wed, 4 Aug 2004 12:01:19 +0800 Received: from [43.88.102.67] (RAVIN [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 37T3D8L2; Wed, 4 Aug 2004 09:43:05 +0530 From: ravi To: Robert Watson In-Reply-To: References: Content-Type: text/plain Organization: SONY-SARD Message-Id: <1091592485.4760.1.camel@ravin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 04 Aug 2004 09:38:05 +0530 Content-Transfer-Encoding: 7bit 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: Wed, 04 Aug 2004 04:01:44 -0000 I tried with echo -n as well . But even then the same error messge is coming . Please tell me the solution . On Tue, 2004-08-03 at 20:36, Robert Watson wrote: > 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 > > > > > > > > > > >