1 / 26

Figure 12.4 Semantics of the rsh server sort < datafile command run on ‘client’

Figure 12.1  Standard files and file descriptors: (a) file descriptors; (b) semantics of a command execution. Figure 12.2  Input redirection: (a) file descriptors and standard files for ‘command’; (b) semantics of input redirection.

jamar
Download Presentation

Figure 12.4 Semantics of the rsh server sort < datafile command run on ‘client’

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Figure 12.1  Standard files and file descriptors: (a) file descriptors;(b) semantics of a command execution

  2. Figure 12.2  Input redirection: (a) file descriptors and standard files for ‘command’; (b) semantics of input redirection

  3. Figure 12.3 Output redirection: (a) file descriptors and standard files for ‘command’; (b) semantics of output redirection (continued on next slide)

  4. Figure 12.3 Output redirection: (a) file descriptors and standard files for ‘command’; (b) semantics of output redirection (continued from previous slide)

  5. Figure 12.4 Semantics of the rsh server sort < datafile commandrun on ‘client’

  6. Figure 12.5  Combined use of input and output redirection

  7. Figure 12.6  Error redirection: (a) file descriptors and standard files for ‘command’; (b) semantics of error redirection (continued on next slide)

  8. Figure 12.6  Error redirection: (a) file descriptors and standard files for ‘command’; (b) semantics of error redirection (continued from previous slide)

  9. Figure 12.7  Error redirection: (a) file descriptors and standard files for cat lab1 lab2 lab3 1> cat.output 2> cat.errors (b) semantics of the cat command

  10. Figure 12.8 Error redirection: (a) file descriptors and standard files (b) semantics of the cat lab1 lab2 lab3 1> cat.output.errors 2>&1 and cat lab1 lab2 lab3 2> cat.output.errors 1>&2 commands (continued on next slide)

  11. Figure 12.8 Error redirection: (a) file descriptors and standard files (b) semantics of the cat lab1 lab2 lab3 1> cat.output.errors 2>&1 and cat lab1 lab2 lab3 2> cat.output.errors 1>&2 commands (continued from previous slide)

  12. Figure 12.9 Output and error redirection: (a) file descriptors and standard files for the cat command; (b) standard files after cat lab1 lab2 lab3 2>&1, with no change in stdout and stderr; (c) standard files after cat lab1 lab2 lab3 2>&1 1> cat.output.errors; and (d) command semantics(continued on next slide)

  13. Figure 12.9 Output and error redirection: (a) file descriptors and standard files for the cat command; (b) standard files after cat lab1 lab2 lab3 2>&1, with no change in stdout and stderr; (c) standard files after cat lab1 lab2 lab3 2>&1 1> cat.output.errors; and (d) command semantics(continued on next slide)

  14. Figure 12.10 Redirecting stdin, stdout, and stderr in a single command

  15. Figure 12.11  The semantics of a pipeline with N commands

  16. Figure 12.12  The semantics of the ls -l | more command

  17. Figure 12.13  The semantics of the grep “John” < Students | lpr -Pspr command

  18. Figure 12.14  The semantics of egrep ‘A$’ < ee446.grades | sort > ee446.As.sorted

  19. Figure 12.15 The semantics of rsh server cat ~/research/pvm/datafile.server | diff datafile - command

  20. Figure 12.16  The semantics of the cat names students | grep “John Doe” | tee file1 file2 | wc -l command

  21. Figure 12.17  Step-by-step semantics of the (find ~ -name foo -print > foo.paths) >& error.log command (continued on next slide)

  22. Figure 12.17  Step-by-step semantics of the (find ~ -name foo -print > foo.paths) >& error.log command (continued from previous slide)

  23. Table 12.1 Redirection Operators and Their Meaning in Bash and TC Shells (continued on next slide)

  24. Table 12.1 Redirection Operators and Their Meaning in Bash and TC Shells (continued on next slide)

  25. Table 12.1 Redirection Operators and Their Meaning in Bash and TC Shells (continued from previous slide)

More Related