More redirection testing

This commit is contained in:
2013-12-27 09:20:50 +01:00
parent 5d78a62a0d
commit ec6f3c7ec7
4 changed files with 37 additions and 2 deletions

16
Misc/appending_redirections.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Jack-Benny Persson
# LX13
# Testing out permanent appending redirections
exec 1>>appending_output
echo "Everytime this script run this should be added to file"
echo "This could be useful for logfiles and such"
# Closing it again
exec 1>&-
echo "We won't be able to print this line since we no longer have STDOUT"
exit 0