delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Reply-To: | <orongier AT netcourrier DOT com> |
From: | "Olivier RONGIER" <orongier AT netcourrier DOT com> |
To: | <cygwin AT cygwin DOT com> |
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 |
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: <an_email> RCPT TO: <my_email> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |