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. Now I want
Tag: io-redirection
How to avoid creating tmp-Files on Linux?
I have a program that needs to access a file. The content of this file is in a variable and I want to avoid creating a real file. Is it possible to create some kind of virtual file?? Normally I would pipe this to the command, but STDIN already “in use”. Is there any way to pass both variables to
Why does ksh fail to capture standard error during nested command substitutions?
I have the following shell script. It produces the following output in bash, zsh, dash and posh. It makes sense because there is no such command called bogus on the system. But in ksh on Debian, it does not print the error message due to invoking the bogus command. What went wrong? In case, you want to know about the
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 for whatever reason. The
How do I use sudo to redirect output to a location I don’t have permission to write to? [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 Exchange site, you can leave a comment to explain where the question