Advertisement
Guest User

Test script for testing "script" command

a guest
May 14th, 2011
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. function my_funct {
  4.     ls         
  5.  
  6.     # for some reson, this doesn't work (the script stop here)
  7.     script build_log
  8.  
  9.     echo -e "* This line should appear inside the /"build_log/" log file..."
  10. }
  11.  
  12. ## main
  13.  
  14. echo "This is just a test script"
  15. my_funct
  16.  
  17. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement