Find the answer to your Linux question:
Results 1 to 5 of 5
Well the title is sort of true. I am looking to free up spme space, so I've been hunting down file that are present and can be remove or parred ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    141

    confusion on creation of a file


    Well the title is sort of true. I am looking to free up spme space, so I've been hunting down file that are present and can be remove or parred down.
    A few days ago I found a DB2 log ~1.3 mb. I then talked to the db2 guy about it, but my curiosity got the best of me and when I looked closer i found the file is being create daily. The owner is root, so I do a crontab -l to see the process creating it and there is not process that runs near the creation time of the file!
    Here are the file attrs:
    -rw-r--r-- 1 root root 138796484 2012-03-02 06:51 dklog.log

    What am I missing? If it we a db2 process wouldnt it be owned by db2?
    thanks
    mace

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    No, there is a process that is running as root that is creating this file. It might not be a cron job that is starting it.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    141
    Ok so a ps will show waht the current processes are , how or can i find what created it?
    thx
    mace

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Try htop or
    Code:
    pgrep -u root
    
    or
    
    ps -faux | grep root

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  6. #5
    Linux Newbie
    Join Date
    Jun 2004
    Location
    Halesowen, West Midlands, UK
    Posts
    107
    Quote Originally Posted by mace View Post
    Well the title is sort of true. I am looking to free up spme space, so I've been hunting down file that are present and can be remove or parred down.
    A few days ago I found a DB2 log ~1.3 mb. I then talked to the db2 guy about it, but my curiosity got the best of me and when I looked closer i found the file is being create daily. The owner is root, so I do a crontab -l to see the process creating it and there is not process that runs near the creation time of the file!
    Here are the file attrs:
    -rw-r--r-- 1 root root 138796484 2012-03-02 06:51 dklog.log

    What am I missing? If it we a db2 process wouldnt it be owned by db2?
    thanks
    mace
    It seems to belong to db2.
    eClient Customization, Part 8: eClient troubleshooting and debugging

Posting Permissions

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