Results 1 to 6 of 6
  1. #1

    Question Monitor files in a Directory (using C)


    Hi sa tanan...

    Mangayo napud ko ninyo ug idea ani sa C in Unix:

    Gusto nako nga mamonitor ang mga panghitabo sa files sa specific directory (ex. A directory).
    For example, naa ko'y file (ex. file1.txt) sa A directory nga gibalhin ug laing folder (example directory B).
    Ang buhaton sa akong C program kay ang pag-log sa mga panghitabo ngadto sa akong log file(log.txt).
    Example log kay: "file file1.txt moved to directory B"....

    Naa'y gitawag ug "filewatch" gicode cya sa perl. Pero diman ang di rectory iyahang imonitor, ang specific man nga file...

    Mangayo ko ninyo sa inyong ideya, ug posible ba na cya, ug unsaon...


    Salamat napud ninyo..

  2. #2
    Solution: inotify

  3. #3
    You can use these libs:

    File Alteration Monitor (FAM): SGI - Developer Central Open Source | FAM
    GAMIN (I think this is a FAM rewrite): Gamin the File Alteration Monitor

  4. #4
    Thanks simon.

    Already found solution. We used the inotify event....

  5. #5
    Junior Member
    Join Date
    Dec 2004
    Gender
    Male
    Posts
    201
    how's that? naa mo steps?

  6. #6

  7.    Advertisement

Similar Threads

 
  1. watch divx or listen to mp3 files in your ps2 using flashdisk
    By ongkal in forum Software & Games (Old)
    Replies: 6
    Last Post: 12-03-2008, 03:00 AM
  2. opening an eps file in photoshop using php..
    By ichiriki in forum Programming
    Replies: 1
    Last Post: 10-28-2008, 06:43 PM
  3. Deleting deep freeze file in BIOS' using boot disk
    By l3inad in forum Software & Games (Old)
    Replies: 1
    Last Post: 01-05-2007, 02:14 PM
  4. Replies: 0
    Last Post: 12-02-2005, 07:53 AM
  5. How to create a ISO file from a CD using Nero 6.6 version
    By Bashka in forum Software & Games (Old)
    Replies: 1
    Last Post: 11-14-2005, 10:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top