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 how to capture sdin with code snippet
(
echo "mail from: foo@bar.net"
sleep 1
echo "rcpt to: bar@foo.net"
sleep 1
echo "data"
sleep 1
echo "this is a test "
echo "./n/$"
) | telnet localhost 25 >> Log 2>&1

*****************************
now I have captured standard out and error but it would be nice to have standard in included in the log file. I could append it but it would look out of order
thanx,
bill
New "tee" is your friend
Remember "tee" is your friend.

(
echo "mail from: foo@bar.net"
sleep 1
echo "rcpt to: bar@foo.net"
sleep 1
echo "data"
sleep 1
echo "this is a test "
echo "./n/$"
) | tee -a Log | telnet localhost 25 >> Log 2>&1
New forgot about tee, thanx!
New From your test
I see you are kicking off emails.
I'd suggest you look into using "expect" (command line) or "expect.pm" (perl module) to interact with the server so you know if the email is even accepted.
New dont care it is accepted just that I get to the data stage
     how to capture sdin with code snippet - (boxley) - (4)
         "tee" is your friend - (folkert) - (1)
             forgot about tee, thanx! -NT - (boxley)
         From your test - (crazy) - (1)
             dont care it is accepted just that I get to the data stage -NT - (boxley)

The telltale breath with sen-sen.
75 ms