The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-31-2008
satimis satimis is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 45
Quote:
Originally Posted by era View Post
Perhaps the script command would be closer to what you are looking for. Or you can run the shell with tee, something like

Code:
sh -ix <commands.txt 2>&1 | tee -a /path/to/output.txt
You'd put your canned commands in commands.txt (mainly because typing anything into a shell which is running with redirection is not exactly user-friendly).
Hi era,


Thanks for your advice.


What does commands.txt refer to?


e.g. to run "ls -l" command. What will be the complete command line? TIA


B.R.
satimis