Re: perl test

Liste des GroupesRevenir à cl misc 
Sujet : Re: perl test
De : retroguy (at) *nospam* novabbs.com (Retro Guy)
Groupes : misc.test comp.lang.misc
Date : 08. Sep 2024, 12:46:44
Autres entêtes
Organisation : Rocksolid Light
Message-ID : <d74c8bd2596c112523ffb820eb6f24e5@www.novabbs.org>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Rocksolid Light
On Sun, 8 Sep 2024 6:38:17 +0000, Lawrence D'Oliveiro wrote:

On Sat, 7 Sep 2024 23:11:41 +0000, Retro Guy wrote:
>
On Sat, 7 Sep 2024 22:59:41 +0000, Lawrence D'Oliveiro wrote:
>
If you want to pass arguments to an external program, don’t bother
going through a shell if you can help it. Invoke the program and pass
the command-line arguments directly, then you don’t have to worry about
shell specials.
>
That would be my preference, but I'm not sure how to do that from Perl.
>
From the perlfunc(1) man page:
>
   system LIST
   system PROGRAM LIST
<snip>
Thank you for the info, I've now done some reading about system, exec,
etc. and yes, system looks to be the correct choice.
I'm basically calling a php script and need to wait for it to complete,
then deal with whether a file exists once back in the perl script. This
is all working perfectly fine for me right now, but no reason I can't
improve the method used (do it properly) at some point. I'm sure this
can all be done in Perl (no need for PHP), but I'm able to slap out PHP
code quickly, so it's my first choice.
Thanks again for your input.
--
Retro Guy

Date Sujet#  Auteur
6 Sep 24 * Re: perl test15Lawrence D'Oliveiro
6 Sep 24 `* Re: perl test14Retro Guy
7 Sep 24  +* Re: perl test3Lawrence D'Oliveiro
7 Sep 24  i`* Re: perl test2Retro Guy
7 Sep 24  i `- Re: perl test1Lawrence D'Oliveiro
7 Sep 24  `* Re: perl test10Peter Dean
7 Sep 24   +* Re: perl test3Lawrence D'Oliveiro
7 Sep 24   i`* Re: perl test2Peter Dean
7 Sep 24   i `- Re: perl test1Peter Dean
7 Sep 24   `* Re: perl test6Retro Guy
7 Sep 24    +- Re: perl test1Peter Dean
8 Sep 24    `* Re: perl test4Lawrence D'Oliveiro
8 Sep 24     `* Re: perl test3Retro Guy
8 Sep 24      `* Re: perl test2Lawrence D'Oliveiro
8 Sep 24       `- Re: perl test1Retro Guy

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal