Skip to content

Tag: linux

Polling for readiness file

I work on Linux. How to know that a gzip file is ready? I have a server that polls files in directory /dir/. There is an another, independent process that gzip files to /dir/. How can my server know that file is ready? Answer There is no ready-made solution for this. Looking at the last modification timestamp…

C – in recursive function remove() dont work

obviating if the recursive function is well constructed or not, when i call the function on a directory Folder/file.txt. this code should delete file.txt, but when it reaches to remove dont work, and i dont know for what… Answer Reading the man page on readdir, it returns in d_name a file name, not a co…