Difference between revisions of "Exec"

From wikieduonline
Jump to navigation Jump to search
Line 11: Line 11:
 
https://unix.stackexchange.com/questions/61931/redirect-all-subsequent-commands-stderr-using-exec
 
https://unix.stackexchange.com/questions/61931/redirect-all-subsequent-commands-stderr-using-exec
  
  [[#!/bin/bash]] -  
+
  #![[/bin/bash]] -  
 
   
 
   
 
  exec > >(tee "$HOME/somefile.log") 2>&1
 
  exec > >(tee "$HOME/somefile.log") 2>&1

Revision as of 11:40, 2 February 2023

Advertising: