posted on 09:44 AM on Wednesday 03 July 2013
I use bash scripts to tie together different programs to get the results that I need and it is nice to be able to redirect all the stdout and stderr of all the programs to a single output file. In a bash script, you can add the following lines to the top of the script and that will redirect everything to the specified file.
exec > log.out exec 2>&1
See the following links from which I got the information from:
Drawing of the beach at Club Med Cherating (10:34 AM on Saturday 06 July 2013)
Packaging Java codes into a single JAR (09:11 AM on Thursday 27 June 2013)
Dumping data from Excel files (08:49 AM on Tuesday 21 July 2015)
Nice titles in screen (12:12 PM on Sunday 21 May 2023)
Find symbolic links (08:53 AM on Friday 08 August 2014)
hashdeep (09:27 AM on Wednesday 06 March 2024)
Packaging Java codes into a single JAR (09:11 AM on Thursday 27 June 2013)