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 > Shell Programming and Scripting
.
google unix.com




Thread: redirect STDIN
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-03-2007
prkfriryce prkfriryce is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 44
Quote:
Originally Posted by jim mcnamara
Code:
myscript.sh arg1 < arg2
works from the command line that what you need?
nope.

in bash, it still tries to read arg2 as a text file:

Code:
# script -option arg1 < arg2
# arg2: No such file or directory