Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2004 11:06:16 -0400 (EDT)
From:      Robert Watson <rwatson@freebsd.org>
To:        ravi <ravi.nanjundappa@ap.sony.com>
Cc:        Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
Subject:   Re: Regarding writing to /proc entries
Message-ID:  <Pine.NEB.3.96L.1040803110533.83843A-100000@fledge.watson.org>
In-Reply-To: <1091526793.4761.44.camel@ravin>

next in thread | previous in thread | raw e-mail | index | archive | help

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?Pine.NEB.3.96L.1040803110533.83843A-100000>