I have written a script that appears to work correctly in testing, but is coming up with a starnge error message,
script_name[187]: test: 0403-004 Specify a parameter with this command.
Redirection or piping of stdin or stdout is allowed only with -b. (156).
The script is run by different functions being called as seen below and the bit it seems to not like is marked in bold.
setup_environment
if [ -s ${shame_list} ]
then
rm ${shame_list}
fi
already_logged_in
if [ ${rejection} = yes ]
then
shame_on_you < $shame_list
fi
logon
A brief run down of the script is that it sets up all the environment variables, them checks to see whether there is a shame_list file and removes it, creates a list of who is logged on, then tries to import this list into a function which pulls out selected in formation.
Can anyone shed any light on why the error message is coming up as it has stumped me?