Help...I have most this written but cant figure out why I'm getting this errors
-----------------------
mailx -svastera
+ 0< /u02/app/EMSEUWEB/tmp/uk_edi/outbound/01060002.edi
The flags you gave are used only when sending mail.
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
-s SUBJECT -f FILE users
+ EOF
./vastera[29]: EOF: not found
+ mailx -svastera
+ 0< /u02/app/EMSEUWEB/tmp/uk_edi/outbound/01060004.edi
The flags you gave are used only when sending mail.
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
-s SUBJECT -f FILE users
+ EOF
./vastera[29]: EOF: not found
+ mailx -svastera
+ 0< /u02/app/EMSEUWEB/tmp/uk_edi/outbound/01060012.edi
The flags you gave are used only when sending mail.
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
-s SUBJECT -f FILE users
+ EOF
-----------------------------------------
#!/usr/bin/ksh
DIR1=/u02/app/EMSEUWEB/tmp/uk_edi/outbound
USERS=armentaj@mascorp.com
echo " "
echo "Searching for Vastera files..."
echo " "
/usr/bin/find $DIR1 -name *edi>/tmp/vastera
echo " "
echo "Found the following Vastera files to send..."
echo " "
/usr/bin/cat /tmp/vastera
#Begin loop for email each file
for i in `cat /tmp/vastera`
do
mailx -s"vastera" $USER < $i
EOT
-----------------------
mailx -svastera
+ 0< /u02/app/EMSEUWEB/tmp/uk_edi/outbound/01060002.edi
The flags you gave are used only when sending mail.
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
-s SUBJECT -f FILE users
+ EOF
./vastera[29]: EOF: not found
+ mailx -svastera
+ 0< /u02/app/EMSEUWEB/tmp/uk_edi/outbound/01060004.edi
The flags you gave are used only when sending mail.
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
-s SUBJECT -f FILE users
+ EOF
./vastera[29]: EOF: not found
+ mailx -svastera
+ 0< /u02/app/EMSEUWEB/tmp/uk_edi/outbound/01060012.edi
The flags you gave are used only when sending mail.
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
-s SUBJECT -f FILE users
+ EOF
-----------------------------------------
#!/usr/bin/ksh
DIR1=/u02/app/EMSEUWEB/tmp/uk_edi/outbound
USERS=armentaj@mascorp.com
echo " "
echo "Searching for Vastera files..."
echo " "
/usr/bin/find $DIR1 -name *edi>/tmp/vastera
echo " "
echo "Found the following Vastera files to send..."
echo " "
/usr/bin/cat /tmp/vastera
#Begin loop for email each file
for i in `cat /tmp/vastera`
do
mailx -s"vastera" $USER < $i
EOT