Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Olivier RONGIER" To: Subject: Bash and Telnet / Redirection / Here documents and Redirecting input problem Date: Tue, 26 Feb 2002 17:10:09 +0100 Message-Id: <000001c1bee0$10dd39d0$4c0710ac@gemenos.eur.gemplus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Hello, I've got a problem with redirection in Cygwin. Here is a script that doesn't work under bash or ash : #### Begin telnet mail 25 << EOT MAIL FROM: RCPT TO: DATA Subject: Test sending mail with telnet Just a test Olivier . quit EOT #### End It's ok when I write this directly on a shell session (i.e without "<< EOT"). The script is ok on several Unix (Solaris, HP-UX, Linux) with several Shell. I tried "telnet mail 25 < file_with_smtp_commands" but it doesn't work. (idem with "cat file_with_smtp_commands | telnet mail 25") Redirection is ok with "bc". For example, this script is working fine : #### Begin bc << EOT 20*4 EOT #### End I tried such redirection with "PLUS80.EXE" (Oracle SQL*Plus for windows) : no success. So here are my questions : - can we use redirection with Windows executables? - is it an Unix emulation problem, a shell problem, or a telnet problem? - does a workaround exist? Regards. Olivier RONGIER. (french user) mailto:orongier AT netcourrier DOT com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/