Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Aug 2004 09:38:05 +0530
From:      ravi <ravi.nanjundappa@ap.sony.com>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
Subject:   Re: Regarding writing to /proc entries
Message-ID:  <1091592485.4760.1.camel@ravin>
In-Reply-To: <Pine.NEB.3.96L.1040803110533.83843A-100000@fledge.watson.org>
References:  <Pine.NEB.3.96L.1040803110533.83843A-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> > 
> > 
> > 
> > 
> > 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1091592485.4760.1.camel>