[perl] HOLA Lista PERL
Ing. Roberto Andrade
randrade@campus.iztacala.unam.mx
Mon, 30 Nov 1998 13:21:54 -0600 (CST)
Hola Paul:
> se pueden ejecutar archivos con extension *.exe a traves de un programa escrito en perl???
>
> si alguien sabe la respuesta por favor me la envian
Los comandos:
exec:
exec LIST
The exec() function executes a system command AND NEVER
RETURNS - use system() instead of exec() if you want it
to return. It fails and returns FALSE only if the command
does not exist and it is executed directly instead of via
your system's command shell (see below).
y system:
system LIST
Does exactly the same thing as "exec LIST" except that a
fork is done first, and the parent process waits for the
child process to complete. Note that argument processing
varies depending on the number of arguments. The return
value is the exit status of the program as returned by
the wait() call. To get the actual exit value divide by
256. See also the exec entry elsewhere in this document
. This is NOT what you want to use to capture the output
from a command, for that you should use merely backticks
or qx//, as described in the section on `STRING` in the
perlop manpage.
son tus amigos, revisa el man perlfunc.
Saludos,
Roberto Andrade Fonseca
--------- Pie de mensaje --------------------------------
Visite: http://tlali.iztacala.unam.mx/~randrade/perl.shtml
Cancelar inscripcion:
mail to: majordomo@tlali.iztacala.unam.mx
text : cancelacion perl