Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/bin/bash
  2. version=2.6
  3. log_file="$HOME/log-file-version-$version.log"
  4.  
  5. touch $log_file &>/dev/null
  6.  
  7. echo "log to my log file from script 1" >> $HOME/log-file-version-?.?.log
  8.  
  9. gnome-terminal --tab --active --title="script2" -- sh script2.sh
  10.  
  11. #!/bin/bash
  12.  
  13. echo "log to my log file from script 2" >> $HOME/log-file-version-?.?.log
  14.  
  15. log-file-version-2.6.log
  16. log-file-version-?.?.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement