bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13913: Regarding cat command?


From: Bob Proulx
Subject: bug#13913: Regarding cat command?
Date: Sat, 9 Mar 2013 14:56:52 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

tag 13913 + notabug
close 13913
thanks

Naveen wrote:
>      I am naveen kumar, currently studying B.Tech CSE 3 rd year. I am
> developing a application in linux 10.04 by using java. In my application am
> showing battery status of system. for that am accessing the file cat
> /proc/acpi/battery/BAT0/state frequently.

Thank you for the report.  But you are reporting to the bug reporting
address for 'cat' and other GNU coreutils.  But you are not reporting
a problem with cat or any other GNU coreutils program.  You are
talking about Java and about /proc and the kernel's resource display.
I am sorry but this is the wrong place to report bugs in those.

The /proc interface is a pseudo-file system interface to kernel
resources.  You can learn more about it here:

  man proc

And here:

  https://www.kernel.org/doc/Documentation/filesystems/proc.txt

> but in some of the systems after running the application they are
> shutting down as if they don't have battery backup.

If so then that would be a problem for the kernel.  You would need to
discuss the problem with kernel developers.

> am not able to figuring out the problem?  is it due to the
> access os /proc battery file repeatdly or any other?

You should be able to read that interface repeatedly with no trouble.

Without knowing anything it would be hard to guess what is happening
on your system.  But I will guess that something related to the
battery driver in your kernel.

Note that the battery interface in /proc has changed in newer kernels.
You might want to look at the /sys/class/power_supply/* in newer
kernels.

Good luck!
Bob





reply via email to

[Prev in Thread] Current Thread [Next in Thread]