Regarding writing to /proc entries

ravi ravi.nanjundappa at ap.sony.com
Tue Aug 3 21:01:44 PDT 2004


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 at 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
> > 
> > 
> > 
> > 
> > 
> 



More information about the freebsd-fs mailing list