Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:redirection_tutorial [2015/08/09 03:20]
bill_thomson
howto:redirection_tutorial [2017/02/04 20:55] (current)
twc [stdin, stdout, stderr] - change lsof pseudo terminal number to match that referenced in the rest of the page
Line 21: Line 21:
 # lsof +f g -ap $BASHPID -d 0,1,2 # lsof +f g -ap $BASHPID -d 0,1,2
 COMMAND ​  PID USER   ​FD ​  TYPE FILE-FLAG DEVICE SIZE/OFF NODE NAME COMMAND ​  PID USER   ​FD ​  TYPE FILE-FLAG DEVICE SIZE/OFF NODE NAME
-bash    12135 root    0u   ​CHR ​    RW,LG 136,​13 ​     0t0   16 /dev/pts/13 +bash    12135 root    0u   ​CHR ​    RW,LG 136,​13 ​     0t0   16 /dev/pts/5 
-bash    12135 root    1u   ​CHR ​    RW,LG 136,​13 ​     0t0   16 /dev/pts/13 +bash    12135 root    1u   ​CHR ​    RW,LG 136,​13 ​     0t0   16 /dev/pts/5 
-bash    12135 root    2u   ​CHR ​    RW,LG 136,​13 ​     0t0   16 /dev/pts/13+bash    12135 root    2u   ​CHR ​    RW,LG 136,​13 ​     0t0   16 /dev/pts/5
 </​code>​ </​code>​
  
Line 391: Line 391:
 <​code>​ <​code>​
  exec 3<file  exec 3<file
- while read -u 3 line;​do ​echo echo "​$line";​ read -p "Press any key" -n 1;done+ while read -u 3 line;do echo "​$line";​ read -p "Press any key" -n 1;done
 </​code>​ </​code>​
  
  • howto/redirection_tutorial.1439090420.txt
  • Last modified: 2015/08/09 03:20
  • by bill_thomson