I want to redirect both stdout and stderr of a process to a single file. How do I do that in Bash?
相关问题
- How to get the return code of a shell script in lu
- Stop .htaccess redirect with query string
- JQ: Select when attribute value exists in a bash a
- UrlEncodeUnicode and browser navigation errors
- Invoking Mirth Connect CLI with Powershell script
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- How to get jQuery.ajax response status?
- In IntelliJ IDEA, how can I create a key binding t
- send redirect and setting cookie, using laravel 5
- Check if directory exists on remote machine with s
- shell中反引号 `` 赋值变量问题
- How get the time in milliseconds in FreeBSD?
- Reverse four length of letters with sed in unix
This is going to redirect stderr to stdout and stdout to
some_file
and print it to stdout.@fernando-fabreti
Adding to what you did I changed the functions slightly and removed the &- closing and it worked for me.