From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 05:01:59 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 D1A0416A4CE; Wed, 4 Aug 2004 05:01:59 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD9B43D67; Wed, 4 Aug 2004 05:01:59 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i7451gLC038528; Wed, 4 Aug 2004 00:01:42 -0500 (CDT) (envelope-from dan) Date: Wed, 4 Aug 2004 00:01:42 -0500 From: Dan Nelson To: ravi Message-ID: <20040804050142.GB85344@dan.emsphone.com> References: <1091592485.4760.1.camel@ravin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1091592485.4760.1.camel@ravin> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: Brian Fundakowski Feldman cc: Raja Guha cc: freebsd-fs@freebsd.org cc: Robert Watson 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 05:01:59 -0000 In the last episode (Aug 04), ravi said: > I tried with echo -n as well . But even then the same error messge is > coming . Please tell me the solution . For the 'note' case, a look at the source makes it clear that it has never been implemented. The manpage also mentions it: note Used for sending signals to the process. Not implemented. For 'ctl', your example is invalid. At least on my system, process 2 is a kernel thread. Try with a real userland process, and note that you cannot trace yourself (so "echo attach > /proc/$$/ctl" will fail). For a better ptrace interface, take a look at the ptrace() syscall. Use of procfs is discouraged. > > On Tue, 3 Aug 2004, ravi wrote: > > > echo attach > /proc/2/ctl -- Dan Nelson dnelson@allantgroup.com