Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MailX errors

Status
Not open for further replies.

unixkid

IS-IT--Management
May 22, 2001
105
US
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 &quot; &quot;
echo &quot;Searching for Vastera files...&quot;
echo &quot; &quot;

/usr/bin/find $DIR1 -name *edi>/tmp/vastera
echo &quot; &quot;
echo &quot;Found the following Vastera files to send...&quot;
echo &quot; &quot;
/usr/bin/cat /tmp/vastera
#Begin loop for email each file
for i in `cat /tmp/vastera`
do
mailx -s&quot;vastera&quot; $USER < $i
EOT
 
Sorry that was a mis-type I do have a &quot;done&quot; after the EOT.
 
Hi,

in the beginning you set var USERS, but the mailx command gets the value of USER without the ending S, so it is a different var that may or may not contain something usefull in this situation.

mbr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top