Skip to content

Tag: io-redirection

How to redirect the output from desktop-entry

I have a program called prg.exe written in C#. I want to run this program in mono with an argument (arg1) and redirect the output to a log file called log.txt. If I open a terminal and enter the command: everything works fine. When the program is finished, the log.txt file is created, which contains any error…

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…