Skip to content

shell difference between redirect position

Is there any difference between these 2 lines? Because Robert told me that the first one only makes the I/O OP outside the for loop. But if I type tail -f /tmp/output.txt this is behaving exactly the same way. Answer They do the same if they succeed. However, there might be notable differences if they fail fo…

Detect client is disconnected

I have a simple program that listens to a socket. Everything goes fine except when the connection is lost in while(1) cycle. In this case the program falls into read from socket for many times without result. How can I detect a disconnected client in while(1) cycle? Answer Change: To: Also, your code mishandl…

How to run Ionic serve permanently?

I am using Ionic framework for one application. The code is on a linux server. I am running the application using ionic serve command through putty. But, the problem is if I close the putty the application is stopped. Is there any way to run the ionic serve permanently as a daemon process? Answer I’m su…

Linux Mint: Bitnami Xampp access issue

I have installed Bitnami Xampp on linux mint, it is installed inside /opt/ The application is unable to access(Write/Read) files and hence not able to work on it. Any Solution Please…….. Thank You Answer After the previous setting –$ sudo chmod -R 777 opt Xampp is not working with following …