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…
Tag: linux
Restart the computer when the power on time exceeds 30 minutes [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Are resource demanding process divided into multiple processes?
It is spotted on google cloud engine. Multiple instances of my script are created (by bash?). The reason might be that the script demands very high amount of memory. How is this division done exactly? Any performance impact? [UPDATE] My mistake. These instances are threads created by python. Answer Don’…
Java program is unable to write on mounted system in linux
I am currently working a scenario where we have to create a file in a shared directory in Linux as well as Windows. I have gone through the following link to achieve it : https://www.journaldev.com/878/java-write-to-file https://it.toolbox.com/question/how-to-write-a-file-in-a-network-folder-without-using-ftp…
What is the 4-digit octal Unix file permission system? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Closed 4 years ago. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-top…
Linux Terminal executing Python Script differently to Idle
So I wrote a program to print songs like an old dot matrix printer, character by character. When I run the thing in Idle it does it and works fine, but when I call the program from the Linux Terminal the text is printed line by line, instead of character by character, and it really takes away from the whole
Linux Kernel DTSI File Cannot Compile from Yocto for BeagleBone
I am using the Texas Instruments official Yocto SDK to build a complete BSP for the Beaglebone X-15 ( TI AM5728 Processor ). The entire SDK builds great for the MACHINE=am57xx-evm type from the SDK. Later SDKs include the MACHINE=beagle-x15, but I need this older version with Linux kernel 4.4. The Linux kerne…
Why does this code work on Linux but not on Windows?
I asked a previous question here, regarding flagging Daylight Saving Time hours. @MattMessersmith kindly and expertly answered my question, and his solution worked perfectly in Linux (Ubuntu), but not on either of my Windows machines (work and home). My Windows machines are both running Anaconda with Python 3…
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…
fork() – have parent process do work without waiting for child process
I’m making a shell in C for a school project that is capable of running processes in parallel if it is commanded to do so. This is the loop of the shell application that waits for commands: Please do disregard the constants being incremented and decremented. Now, this only works partially. Whenever I gi…