From: Luciano Miguel Ferreira Rocha <luciano@lsd.di.uminho.pt>
To: mariano_moreyra@aca.org.ar
Cc: 'Jorge Opaso Pazos' <jopaso@trofeospazos.com>,
linux-c-programming@vger.kernel.org
Subject: Re: Question!
Date: Thu, 4 Sep 2003 15:05:24 +0100 [thread overview]
Message-ID: <20030904140524.GB24691@lsd.di.uminho.pt> (raw)
In-Reply-To: <000001c372eb$9ee69b20$0b04a8c0@aca.org.ar>
On Thu, Sep 04, 2003 at 10:51:19AM -0300, Mariano Moreyra wrote:
> Hola!
> Te mando la seccion del programa que ejecuta el script en si.
>
> Este proceso lo unico que espera del script es que el mismo conteste con un
> "-" si hubo algun error o con un "+" si salio todo bien
>
> ----------------------------------------------------------
> if(err==0) {
> pipe_in = popen(shell_cmd,"r");
> fgets(response,5,pipe_in);
>
> if(response[0]=='-') {
> err=1;
> } else if(response[0]=='+') {
> err=0;
> };
> while(fgets(response,5,pipe_in)) {
> };
> pclose(pipe_in);
> };
> -----------------------------------------------------------
>
> El script lo unico que hace es copiar algunos archivos y luego leventar el
> MySQL con el
> safe_mysqld
>
> Espero que esto sirva! Muchas gracias!!
> Saludos!!
Please, this is an international list, so write in english.
Are you closing the socket before de popen(3)? Make sure you do and
that if this is a child to exit(2) after being done with the script.
Regards,
Luciano Rocha
next prev parent reply other threads:[~2003-09-04 14:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-03 18:19 Question! Mariano Moreyra
2003-09-03 21:09 ` Question! Jorge Opaso Pazos
2003-09-04 13:51 ` Question! Mariano Moreyra
2003-09-04 14:05 ` Luciano Miguel Ferreira Rocha [this message]
2003-09-04 14:28 ` Question! Mariano Moreyra
2003-09-04 16:04 ` Question! Jorge Opaso Pazos
2003-09-04 17:53 ` Question! Luciano Miguel Ferreira Rocha
2003-09-04 18:41 ` Question! Mariano Moreyra
2003-09-04 19:32 ` Question! Luciano Miguel Ferreira Rocha
2003-09-05 4:16 ` Question! Jorge Opaso Pazos
2003-09-05 14:58 ` Question! Mariano Moreyra
2003-09-04 14:01 ` Question! Luciano Miguel Ferreira Rocha
2003-09-04 17:20 ` Question! Jorge Opaso Pazos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030904140524.GB24691@lsd.di.uminho.pt \
--to=luciano@lsd.di.uminho.pt \
--cc=jopaso@trofeospazos.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=mariano_moreyra@aca.org.ar \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).