This is one of the most common ways of using exec without any commands. Here the exec command changes the standard out of the shell to the tmp file and so all the commands executed after the exec command write their results in that file. The process continues even after the exec command unlike the previous case but now the standard input, output, and error are modified according to the redirections. This is useful as it allows us to change the file descriptors of the shell as per our desire.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |