[Vienna-pm] Escapen von Shellparametern

Josef Schmid e9427749 at stud4.tuwien.ac.at
Tue Apr 29 10:10:30 PDT 2008


Nochmals hallo!

Josef Schmid schrieb:
> Stefan Weiss schrieb:
>> On 2008-04-28 18:20, Josef Schmid wrote:
>>> 1) Hmm, ich würde es als Array system() oder open() übergeben,
>> [...]open(): Das war mir noch gar nicht bekannt, dass das überhaupt 
>> unterstützt wird. Das könnte eine wirklich interessante Lösung sein. Ist 
>> das ein neueres Feature?
> 
> ich glaub ab 5.6 (oder ab 5.8?)
> my $result=do {
>    open(my $fh,'-|','faxjob','--from',$from,'--faxnum',$num,...) or die;
>    local $/; <$fh>
> };

backtick_noshell() aus Proc::SafePipe ist mehr oder weniger das.

IO::Plumbing scheint auch recht nett zu sein.
Und IPC::Run:
"I've thought for some time that it would be
  nice to have a module that could handle full Bourne shell pipe syntax
  internally, with fork and exec, without ever invoking a shell."

Ach ja:
readpipe('comand', at args) wäre nett!! Vielleicht für 5.10.1 ;-)

pfiateng,
   Jos "p=0.6 für 5.5." ef



More information about the Vienna-pm mailing list