Install builder exec args5/5/2023 ![]() 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. ![]() Exec without a command: If no command is supplied, the redirections can be used to modify the current shell environment.If the command is not found the exec command as well as the shell exits in an error. The exec command searches the path mentioned in the $PATH variable to find a command to be executed. Exec with a command as an argument: In the first mode, the exec tries to execute it as a command passing the remaining arguments, if any, to that command and managing the redirections, if any.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |