On Tue, 2004-03-02 at 16:19, Hans Raj wrote: > I'm using the TCL shell in a Communications testset, and it doesnt have the > required packages/libraries installed. It offers just basic functionality.
Aah, so you're not actually using a Linux machine to do this from at all, are you? :-) Therefore all our suggestions of alternative methods are pretty useless to you. > The reason I dint try to make the code very robust is that this email-capablity > is not a critical (or even a nescessary) part of the script. Just put it in to > let me know the status of a test-script if run over the weekend. However, I > would be grateful for any suggestions/tips. Rather than figure out how to talk to an SMTP service from your test box, why not set up a simple service on a local unix box to listen to your test box, and resend as email? Use the excellent netcat program on your server :- while : do nc -l -p 6699 | mail [EMAIL PROTECTED] done And just send your data to port 6699 on that workstation, it will be used as the stdin to the mail command, so you have to do no SMTP dialogue at all. When you close the port at the end of the file, the listening netcat will quit, trigger the mail command, and then the shell will restart another listener ... -jim
