Find the answer to your Linux question:
Results 1 to 10 of 10
Hey there I m inside the /proc/acpi/ directory , there is a file called event present. Code: file event returns an empty file. But Code: vi event opens the file ...
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    What is a event in linux and why is access to /proc/acpi/event denied even to root

    Hey there
    I m inside the /proc/acpi/ directory , there is a file called event present.
    Code:
    file event
    returns an empty file. But
    Code:
    vi event
    opens the file but says access denied( I m the root here). I went through the man pages of acpid and found it mentioning event file is read by it( wat is it here exactly ) and what exactly is an event
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  2. #2
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    I'm not sure, but wasn't the /proc directory mounted by the kernel? I'd stay away from that directory unless you know what you're doing, and let the kernel manage all of it. At least do not edit any of the files.

  3. #3
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    I'd use cat or less commands to view stuff in proc. Unless you know what you're doing, inputing data into stuff in proc can blow up your computer .... maybe not, but it will cause problems, so do it on sandboxes only.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  4. #4
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    thanks

    thanks for replying
    Even I m nt playing around with with those files. BTW what is a sandbox( I knw its a silly question but wat it is??)
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  5. #5
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    /proc/acpi/event is locked, even for root, as long as the acpid daemon is running. When you switch off the daemon you can view it... it gives real time responses to events, so `cat /proc/acpi/event` gives no output until an event takes place. This is because although the files in /proc look like normal flat text files, but they are not. They are kernel info, represented to you, the reader, in the format of a filesystem. They are not on disk.

    It's far easier to just view the contents of the logfile (that is on disk): `cat /var/log/acpid`, this is where /proc/acpi/event gets logged.
    Can't tell an OS by it's GUI

  6. #6
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Quote Originally Posted by vickey_20 View Post
    BTW what is a sandbox( I knw its a silly question but wat it is??)
    If I'm reading the right context in the post... I thing a sandbox is a computer that you don't really mind screwing up or having it take a dump on you.
    sandbox = cat's litter box
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  7. #7
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    A sandbox is an enclosed environment which is completely isolated and separated from your main OS. It can be a separate computer whose life you don't respect too much, or it can be for example some kind of virtual machine. In other contexts it can be just a separate directory, for example, the Gentoo portage tool installs the programs into a sandbox before dumping them into the system root /. That way, if the install fails there's not a partial package with files spread all around your system.

    Depending on the task a sandbox can be any other thing, like a separate user where you run wine to avoid harming your files on the main account.

  8. #8
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    ^ what they said ^
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  9. #9
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    Sorry i didn't get u

    dude What has sparked u off!!
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  10. #10
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Quote Originally Posted by vickey_20 View Post
    dude What has sparked u off!!
    Are you referring to the reply from i92guboj?
    Cuz I found it to be a great explanation to your question?

    If you mean meton_magis, he was just agreeing with the definition.

    ???
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...