Using inotify in linux to monitor file changes

Source: Internet
Author: User
Tags inotify
Using inotify to monitor file changes in linux is a useful method. There are many tutorials on how to configure inotify. Issue

Using inotify to monitor file changes in linux is a useful method. There are many tutorials on how to configure inotify.

The problem occurs after you download and compile inotify. when you run the command, an error is returned. libinotifytools. so.0 cannot be found. The result of running the ldd command is as follows:

Ldd/usr/local/bin/inotifywait linux-vdso.so.1 => (0x00007fffe2fff000) libinotifytools. so.0 => not found libc. so.6 =>/lib64/libc. so.6 (0x00007fd66fe52000)/lib64/ld-linux-x86-64.so.2 (0x00007fd6701b0000)

In fact, you only need to run ldconfig again.

Ldd/usr/local/bin/inotifywait linux-vdso.so.1 => (0x00007fff48fb9000) libinotifytools. so.0 =>/usr/local/lib/libinotifytools. so.0 (0x00007fb1a08a1000) libc. so.6 =>/lib64/libc. so.6 (0x00007fb1a0543000)/lib64/ld-linux-x86-64.so.2 (0x00007fb1a0abd000)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.