IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New problem with a shell script talking to an smtp service
edit to change the email addy
The script works fine until the data prompt returns. I have tried . ./n ./n/r and /0xd just hangs at the data stage. Manually works fine any ideas would be appreciated
*********************************************************************
while read line
do
${OPENSSL} s_client -quiet -connect ${HOST}:${PORT} >> ${TMP} 2>&1 << EOF
mail from: bill.oxley@foo.bar
rcpt to: $line@foo.bar
data
this is testing the datastream/n
"."
quit
EOF
done <$LIST
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep

reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
Expand Edited by boxley May 8, 2007, 06:21:30 PM EDT
New Um...
Does the "." work when you type it manually? If not, why are you putting the dot inside quotes in the heredoc?

And meta-characters are normally done with backslashes, not (forward) slashes.

Wade.


Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please



-- "Anything but Ordinary" by Avril Lavigne.

· my ·
· [link|http://staticsan.livejournal.com/|blog] ·
· [link|http://yceran.org/|website] ·

New the . works manually and I have tried it without quotes
dunno about the slashes whether I did those correctly or not. will try again when I get to work.
thanx,
bill
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep

reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
New just retried with \\n \\r no joy
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 51 years. meep

reach me at [link|mailto:bill.oxley@cox.net|mailto:bill.oxley@cox.net]
     problem with a shell script talking to an smtp service - (boxley) - (3)
         Um... - (static) - (2)
             the . works manually and I have tried it without quotes - (boxley)
             just retried with \\n \\r no joy -NT - (boxley)

Unfortunately, the hard part is moderation...
39 ms