I want to chroot my apache so i have to copy many files (filenames are stored in a file)
The file form is
open("/lib/libcrypt.so.1", O_RDONLY) = 3
open("/usr/lib/libgdbm.so.3", O_RDONLY) = 3
open("/usr/lib/libgdbm_compat.so.3", O_RDONLY) = 3
So i want to copy all these files into the /chroot/httpd/
how can extract all these filenames from the above file and copy to the /chroot/httpd/ without receiving any error (directory automatic creation)?