| 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 |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| Subject: | to use dup() in cygwin |
| MIME-Version: | 1.0 |
| Message-ID: | <OF94455B9D.B708D739-ONC1256CD4.00316F66@madrid.jazztel.com> |
| From: | Fernando DOT Frutos DOT Martin AT es DOT jazztel DOT com |
| Date: | Fri, 21 Feb 2003 10:01:17 +0100 |
Hi! and sorry my english,
I've a server in Linux and Unix and it works perfectly, but when I compile
the same code in Cygwin, it doesn`t send the data to the socket, I use the
dup() comand.
this is part of the program what, I repeat, works well in linux and unix
(sun, HP)
/*close the display exit and send it to the socket*/
close(1);
iError=dup(iDescSock);
if (iError==-1)
{
return(EEXECCOM);
}
sprintf(pcComando,"EjecutarComando_VB.ksh.%s",pcNombreAux);
iError=system(pcComando);
if (iError==-1)
{
fprintf(stderr,"Error en llamada a ejecutar");
return(EEXECCOM);
}
what have I to do this in cygwin and it works.
Thank you.
Fernando
--
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 |